Open HamishWHC opened 3 years ago
I'm affected by this bug as well, on Arch Linux with npm
7.20.5.
I can reproduce by entering an empty directory, running npm init -y
immediately followed by npm i -D @snowpack/plugin-webpack
Edit: Bug is also present for me on Windows 10 with npm
7.20.3.
Installing @snowpack/plugin-webpack@2.3.1
does not cause any issue. 3.0.0
and 3.0.0-pre.0
both cause a memory leak.
There is an upstream dependency conflict, since npm v7 now installs peerDependencies by default: @snowpack/plugin-webpack@3.0.0 needs webpack@"^5.34.0" but also peer webpack@"^4.44.2" from webpack-manifest-plugin@"^3.1.1"
If you can't wait for solution, bypass the peerDependency auto-installation with npm i -D @snowpack/plugin-webpack --legacy-peer-deps
+1
npm: v7.21.0 MacOS Catalina
Quick checklist
What package manager are you using?
npm (7.20.5)
What operating system are you using?
Linux (Pop OS 21.04)
Describe the bug
I was installing the webpack plugin so I could minify my builds, but after a few seconds npm gets stuck on a line. 15 minutes later it crashes due to it using too much memory (in system monitor I saw it using about 4.5GB of memory before it crashed).
Log:
Steps to reproduce
npx create-snowpack-app crash-test --template=@snowpack/app-template-react-typescript
npm i -D @snowpack/plugin-webpack
Link to minimal reproducible example (optional)
No response