pnpm workspace packages break the dev mode, build works
Unanswered
Scottish Terrier posted this in #help-forum
Scottish TerrierOP
Hey guys,
I have a weird error.
I have a pnpm workspace with
Now I got my next-js application within the workspace and also one test package. If I try to access it, I get runtime errors that the module cannot be resolved. Building the application works.
I created an example repository to show the issue, feel free to clone it real quick and run
https://github.com/LukasGerm/pnpm-next-test
Does anyone have a clue?
I have a weird error.
I have a pnpm workspace with
shared-workspace-lockfile=false. This is a requirement.Now I got my next-js application within the workspace and also one test package. If I try to access it, I get runtime errors that the module cannot be resolved. Building the application works.
I created an example repository to show the issue, feel free to clone it real quick and run
pnpm build within the packages/test-package folder to get the output. You will notice that you do not get any IDE errors, build runs fine but dev mode breaks.https://github.com/LukasGerm/pnpm-next-test
Does anyone have a clue?