jsnlog
jsnlog copied to clipboard
Angular: “ng build -prod” produces error
I use jsnLog with Angular 4. I get the following error if I try to execute ng build --prod:
ERROR in ./src/$$_gendir/app/app.module.ngfactory.ts
Module not found: Error: Can't resolve 'jsnlog/Definitions/jl' in 'C:\xxx\src\$$_gendir\app'
@ ./src/$$_gendir/app/app.module.ngfactory.ts 31:0-45
@ ./src/main.ts
@ multi ./src/main.ts
This error only happens if I run ng build --prod and works fine when I run ng build without any parameters,
I'm sorry, I have almost no experience with Angular 4.
If you find a solution, I would be open to a pull request.
Hi mperdeck,
Thanks for your reply! Have you ever seen this error (or a similiar one) with Angular 2?
hello,
this was fixed with this issue: https://github.com/mperdeck/jsnlog.js/issues/56#issuecomment-365275374