kenfdev / qrcode-reader-with-angular

8 stars 7 forks source link

Production build not working #1

Open ben4d85 opened 5 years ago

ben4d85 commented 5 years ago

Thanks for this and the accompanying article! Unfortunately, I am unable to create a production build.

Steps:

  1. Download and extract zip-file of master
  2. Run npm install to install any dependencies
  3. Run ng serve to create development build <-- This works completely fine!
  4. Run ng build --prod <-- This does not work at all!

I am receiving the following error:

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/myprojects/qrcode-reader-with-angular-master/src'
 @ ./src/main.ts 4:0-74
 @ multi ./src/main.ts

Can you help?

ben4d85 commented 5 years ago

Never mind, I have recreated this in the latest version of Angular and it works for me. Thank you.