Open kherock opened 5 months ago
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
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