ngtools module buildable after migration to Angular 14

803 views Asked by At

I have upgraded my Angular 12 project to Angular 13 without any problems but then when I wanted to pass from angular 13 to Angular 14 I encountered problems with @ngtools. Complete log here:

./src/main.ts - Error: Module build failed (from ./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/@ngtools/webpack/src/ivy/index.js):
Error: Emit attempted before Angular Webpack plugin initialization.

Error: Failed to initialize Angular compilation - The target entry-point "@ngbmodule/material-carousel" has missing dependencies:
 - @angular/compiler/src/core

I have tried to delete node_modules and package-lock.json, npm cache clean --force but it didn't help. I couldn't find any similar questions or problems anywhere else. Thanks

0

There are 0 answers