ahmed elbarbary

ahmed elbarbary

  • NA
  • 1.6k
  • 275.3k

Error cannot read property 'id' of undefined when run project angular

Jul 12 2021 8:20 PM

I work on angular 7 i face issue di don't know how to solve it
when i amke ng serve-o to run my angular app
i get error

core.js:35929 Uncaught TypeError: Cannot read property 'id' of undefined
    at registerNgModuleType (core.js:35929)
    at core.js:35947
    at Array.forEach (<anonymous>)
    at registerNgModuleType (core.js:35943)
    at new NgModuleFactory$1 (core.js:36105)
    at compileNgModuleFactory__POST_R3__ (core.js:41895)
    at PlatformRef.bootstrapModule (core.js:42260)
    at Module../src/main.ts (main.ts:19)
    at __webpack_require__ (bootstrap:79)
    at Object.0 (main.ts:20)

so How to solve this issue please

What I have tried:

what i have tried like below
npm install
npm update
but issue still exist


Answers (1)