-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix findUp for Windows #640
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
✅ Deploy Preview for histoire-examples-svelte3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for histoire-controls ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for histoire-examples-vue3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for histoire-site ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @Mobyrr , I think this is not a solution. The previous version (0.2.0) of However I believe the problem might be that |
It's not the same issue My fix simply adds the missing slash when root corresponds to a windows root Also I don't think it's a problem with non-updated dependencies in other packages, I observed with a debugger that it's only this file that causes the problem on Windows |
OK, I see ! |
Description
Fix histoire not starting on Windows because of a infinite loop in findUp function.
in find-up.ts, on Windows on the drive C:,
root
is equal to "C:" butdir
can't be equal to "C:", it can be "C:/" or "/" or something else, so the condition of the loop will always be true, causing an infinite loop.What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).