Next.js Discord

Discord Forum

PNPM and Webpack Issues

Unanswered
Clown posted this in #help-forum
Open in Discord
New PNPM user here.

Having issues like these and webpack failing to resolve some paths. These seem to make the compilation slow as well and i think it keeps trying in the background or something because it is using a horrendous amount of memory.

Working fine with good ol' npm.

<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'next/dist/compiled/send/index' in /home/<username_here>/Dev/maestro/node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server for build dependencies doesn't lead to expected result '/home/<username_here>/Dev/maestro/node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/send/index.js', but to 'SyntaxError: /home/<username_here>/Dev/maestro/node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/package.json (directory description file): SyntaxError: Unexpected end of JSON input' instead. Resolving dependencies are ignored for this path.

1 Reply

Bump