Tuesday 16 May 2017

Angular Modules Not Found On NPM Start

I have the following issue. When running npm start to run my angular, its angular4, project it always says it can't find a module on the initial load despite there being no build errors. The error from the console looks like this:

ERROR Error: Uncaught (in promise): Error: Cannot find module 'app/dashboard/create-team/create-team.module'.

Error: Cannot find module 'app/dashboard/create-team/create-team.module'.

I can go into the routes file that tries to load that module make some change, usually add a space and then backspace it out, save and then everything works just fine. So, it is apparent to me that something is not getting built correctly on the initial npm start, but the subsequent builds when it detects a change are working fine. This becomes a serious problem when we try to compile with cordova on to a mobile device. Anybody have any ideas?



via HarvP

No comments:

Post a Comment