Home > Back-end >  Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit
Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit

Time:10-07

Build at: 2022-09-14T11:34:20.503Z - Hash: c51f599b4586fb6d - Time: 7780ms

./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit

./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit

Error: Failed to initialize Angular compilation - Cannot read properties of null (reading 'fileName')

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

× Failed to compile.

CodePudding user response:

just look at templateUrl u may have a wrong type

CodePudding user response:

Try to find node_modules/@angular/compiler-cli/ngcc/ngcc_lock_file file and delete it. Or Just delete your node_modules folder and do npm install

  • Related