0

Please or Register to create posts and topics.

Error: Can't resolve './app/app.module.ngfactory'

Hi, this append when I try tho compile the app with the --env.prod

ERROR in ./ClientApp/boot.browser.ts
Module not found: Error: Can't resolve './app/app.module.ngfactory' in '/QuickApp-master/src/QuickApp/ClientApp'
@ ./ClientApp/boot.browser.ts 13:0-66

Can you help me?

 

Edit: I'm using the QuickApp from GitHub.

Edit 2: I buy the QuickApp.Standard and its work.

This can happen if you have improper casing in any of your import paths. Double check you're importing with the same case as your module files. E.g. If you name a file "FooBar" make sure you import with import { xyz } from 'FooBar'; and not  import { xyz } from 'foobar'; . This only is an issue for some versions of angular during AOT build.

Also if possible update to the latest version of angular. See the package versions used in the latest update of QuickApp on GitHub.
Then delete the "node_modules" folder and rerun npm install