-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Routes in .blitz dir broken when using multiple apps in a monorepo #16
Comments
For working on this, here's the line that determines the |
I would tackle this, but do not understand how location resolution would solve this, because The problem with multiple apps is, that Next uses the generated Both, local and hoisted
This is not a Blitz-specific issue, would happen e.g. with the auto-generated "nohoist": ["**/blitz","**/@blitzjs/*", "**/next"] |
@nickluger ok wow, thank you so much for the investigation. That makes total sense. So it sounds like the only thing to do at this point is add some docs on monorepo usage and include the nohoist option? |
I can add something to do docs, at least for yarn workspaces. (PNPM, Rush etc. i don't know, they might have similar features) I think the only other solution would be some kind of module resolution config in webpack that alias to a different dir on build, but seems a bit over the top for this use case. |
hey @nickluger! Are you still up to adding it to the docs? I'm not sure what would be the best place, though. Maybe having some |
What is the problem?
Multiple apps in monorepo write to the same
.blitz
directory which is hoisted into the monorepo's top-levelnode_modules
. The issue is also described here: #92, including a temporary workaround.Paste all your error logs here:
No logs
Paste all relevant code snippets here:
No snippets
What are detailed steps to reproduce this?
node_modules
.blitz codegen
, inspect/node_modules/.blitz
in one of the apps.Run
blitz -v
and paste the output here:Psst! the Not Found stuff happens when you use a monorepo, too.
Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: