Open jinmayamashita opened 4 months ago
Reinstalling dependencies using npm works as expected though
I have the same issue with private git dependency, using npm works, using pnpm - does not
Any progress or workaround? We really would love to use PNPM instead of NPM but seems like it is not currently possible.
Link to the code that reproduces this issue
To Reproduce
transpilePackages
innext.config.js
Current vs. Expected behavior
Current Behavior
When running
next dev
after installing dependencies from a private git repository using pnpm, the development server fails to start, and an error occurs.Interestingly, it seems that the failure depends on the length of the package name and the repository URL.
Here are the character counts for cases with errors and those without. (
pnpm-lock.yaml
reference)Expected Behavior
The development server should start successfully without any errors.
Provide environment information
Which area(s) are affected? (Select all that apply)
Webpack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I've linked the code for the git private package I tested. You can also change the git package repogitory to private and test it.