-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
"unstable_dev" not working on Windows #6308
Comments
@trevor-hackett do you have Can you also try adding a test script to package.json and running it? {
"scripts": {
"test": "remix-serve ./build",
}
} npm run test |
Yes. After adding the test script, the app server starts up by itself. Here's the two scripts run one after the other:
It might be worth mentioning that if I turn off This only happens on Windows from what I can tell. On the same machine running in WSL (Ubuntu) it works without any issues. |
Probably caused by unnormalized path separator here: https://github.com/remix-run/remix/blob/dev/packages/remix-dev/devServer_unstable/index.ts#L32 |
Potentially fixed by #6310 |
@trevor-hackett to verify that the PATH is the cause of the issue, could you try: {
"scripts": {
"test": "echo $PATH",
}
} Also since #6310 is merged, you can try the |
I poked around at the the code in that file and changing the
I logged out that path and it was the only path that wasn't separated by a This is what the path variable being passed to
I don't know if that "fix" would work outside of Windows. |
Conditionally joining PATH with |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
I can confirm this fix worked 👍 |
What version of Remix are you using?
1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
On a Windows machine, create a new Remix app with
unstable_dev
enabled. (ex:npx create-remix@latest --template https://github.com/remix-run/remix/tree/templates_v2_dev/templates/remix my-app
)Run the app. (
npm run dev
)Expected Behavior
Dev server and app server runs successfully
Actual Behavior
App server fails to run with these logs:
The text was updated successfully, but these errors were encountered: