damienbod/AngularWebpackVisualStudio

Issue Building Production Ready Build

Closed this issue · 2 comments

Hi,

I am using your guideline in order to build a production ready build. My development environment build fine. However, I am getting the following errors in production mode when running:
npm run webpack-production

4>ERROR in ./angularApp/main-aot.ts
4>Module not found : error : Can't resolve '../aot/angularApp/app/app.module.ngfactory' in 'C:\Projects\amber\src\Clients\AmberUI\angularApp'
4> @ ./angularApp/main-aot.ts 5:0-80

Could you please assist?

I have also noticed that the aot folder is not being generated.

Kind Regards,
Rachidi

Its okay that the aot folder is not being generated on disk. Did you do a fresh npm install? I can not reproduce this. Have you changed any configuration?

Closing this because of no activity. Think this is done now. Feel free to open up another issue if you encounter problems.