How are you deploying your application? (if relevant)
No response
Describe the Bug
When installing Next through a symlink Next is unable to reach compiled modules.
Example:
Custom next path: /home/user/node_cache/next/12.2.6-canary.8
Symlinked to /home/user/next-demo/node_modules/next
The custom next path has it's own node_modules with everything installed.
When running next dev it fails with error Cannot find module 'next/dist/compiled/chalk', if that module is modified to point to the correct route (ex: ../compiled/chalk) same error appears but with another module.
Expected Behavior
Be able to run next through symlinked installation path.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When installing Next through a symlink Next is unable to reach compiled modules. Example:
Custom next path:
/home/user/node_cache/next/12.2.6-canary.8
Symlinked to/home/user/next-demo/node_modules/next
The custom next path has it's own
node_modules
with everything installed.When running
next dev
it fails with errorCannot find module 'next/dist/compiled/chalk'
, if that module is modified to point to the correct route (ex:../compiled/chalk
) same error appears but with another module.Expected Behavior
Be able to run next through symlinked installation path.
Link to reproduction
https://github.com/nachoaldamav/snpm/tree/main/examples/next
To Reproduce
This steps installs a Package Manager called SNPM (It's made by me for testing and playing purposes)
To clear everything related to the custom CLI execute the following commands