EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/home/home.module'

后端 未结 11 2338
遇见更好的自我
遇见更好的自我 2021-01-01 12:37

I\'m trying to lazy load Angular 2 modules with the router, and I\'m having this error:

error_handler.js:50 EXCEPTION: Uncaught (in promise): Error: C

11条回答
  •  -上瘾入骨i
    2021-01-01 12:43

    As silly as it sounds, on Angular 6.

    I was using this command ng build --aot --watch while developing my application. Somehow getting in to the zone I saved a lot of files (copy paste from some other projects). The build did work but was not showing errors but browser showed this error.

    I closed the build, & rebuilt it again & all the errors(unrelated to the above) which were not being shown showed up!!.

提交回复
热议问题