-
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
Remix 1.16.0 new dev server prematurely exits incorrectly #6268
Comments
@aniravi24 can you elaborate about (2)? What error are you seeing? |
(2) might be caused by Nx actually, cause running |
Looks like it did have something to with Nx, it no longer happens. I fix the first problem now by passing in |
Ok so (2) is purely an NX thing. But (1) should still work out of the box for |
@aniravi24 does running Trying to determine a reliable way to detect if |
I do see I have a single package.json at the root of my monorepo to manage dependencies for all projects that live in the monorepo, including those under I don't think this is a pnpm specific problem (but I mentioned it just for context), as I could imagine my setup with yarn or npm would probably would exhibit the same behavior, since I'm not using the workspaces functionality of any package manager to manage my packages. I'm not super familiar with module resolution, but I think the reason this setup can work with the typical module resolution algorithm is that it walks up your directory tree until it finds the first directory with a package.json/node_modules? Not sure if there's a way to use this same mechanism in code to say "if this module is importable, it means it does exist" |
I have the same issue with Remix 1.16.1 in a pnpm monrepo (without Nx) |
@rodbs the old dev server ( If on the other hand, you have |
@pcattori Thanks, I had |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Run the dev server with the future flag in remix.config.js and run
remix dev
(and optionally run with a custom command-c
flag).Expected Behavior
Properly detect dependencies at the root of a monorepo. and also handle custom commands without expecting
@remix-run/serve
to be present.Actual Behavior
Two separate issues:
@remix-run/serve
within a pnpm nx monorepo setup doesn't work correctly. My project has a single package.json at the root of the workspace and my app lives under a directory likepackages/remix-app
. When I comment out the code below that causes the exit, it runs perfectly fine, so I know it's a detection issue.@remix-run/serve
because it appears to ignore the custom command for some reason (possible that it's somehow not getting passed in, but it looks like I am).Lines of code causing the issue are here:
https://github.com/remix-run/remix/blob/main/packages/remix-dev/cli/commands.ts#L543
The text was updated successfully, but these errors were encountered: