We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Certain packages seem to care about the name of the folder that they reside in (namely Next.js).
For example, I get this error while trying to build my site with Next.js 14:
Error: Invariant: Expected relative import to start with "next/", found "package/dist/server/future/route-modules/pages/module.compiled"
This should be reproducible on any Next.js project with the pnpm linker enabled. In case it matters, I am using the pages router still.
pnpm
System: OS: macOS 13.6.4 CPU: (10) arm64 Apple M1 Pro Binaries: Node: 20.12.1 - /private/var/folders/9f/kl_c86q5651fqmhmzf63jb0x5t_d9j/T/xfs-bad117dc/node Yarn: 4.2.1 - /private/var/folders/9f/kl_c86q5651fqmhmzf63jb0x5t_d9j/T/xfs-bad117dc/yarn npm: 10.5.0 - /opt/homebrew/bin/npm
No response
The text was updated successfully, but these errors were encountered:
I've submitted a PR which should fix this issue and tweaks the pnpm linker hardlink naming convention to be a little more consistent to pnpm.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Self-service
Describe the bug
Certain packages seem to care about the name of the folder that they reside in (namely Next.js).
For example, I get this error while trying to build my site with Next.js 14:
To reproduce
This should be reproducible on any Next.js project with the
pnpm
linker enabled. In case it matters, I am using the pages router still.Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: