I've just migrated my project from NPM to PNPM following this tutorial:
https://dev.to/andreychernykh/yarn-npm-to-pnpm-migration-guide-2n04
I had no issues at all, but as soon as I run ng serve command, at the end I got this errors:
./src/main.ts - Error: Module build failed (from ./node_modules/.pnpm/@ngtools+webpack@14.2.10_7ypeylls7ku3jporbawrdnxbdy/node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Emit attempted before Angular Webpack plugin initialization.
./src/polyfills.ts - Error: Module build failed (from ./node_modules/.pnpm/@ngtools+webpack@14.2.10_7ypeylls7ku3jporbawrdnxbdy/node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Emit attempted before Angular Webpack plugin initialization.
Error: Failed to initialize Angular compilation - The target entry-point "ngx-papaparse" has missing dependencies:
- papaparse/papaparse.min.js
Anyone can help? I've seen people had this error before (but on an Angular migration, not on an package manager) fixed it changing typescript version... How do I know if it's my case too?
This is my ng version btw:
Angular CLI: 14.2.10
Node: 14.15.1
Package Manager: pnpm 7.26.3
OS: win32 x64
Angular: 14.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1402.10 (cli-only)
@angular-devkit/build-angular 14.2.10
@angular-devkit/core 14.2.10
@angular-devkit/schematics 14.2.10
@angular/cdk 14.2.6
@angular/cli 14.2.10
@angular/google-maps 14.2.7
@angular/material 14.2.7
@nguniversal/builders 14.2.2
@nguniversal/express-engine 15.0.0
@schematics/angular 14.2.10 (cli-only)
rxjs 6.6.7
typescript 4.6.4
Thanks a lot!