jsnlog icon indicating copy to clipboard operation
jsnlog copied to clipboard

Angular: “ng build -prod” produces error

Open jer-coding opened this issue 7 years ago • 3 comments

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,

jer-coding avatar Dec 13 '17 19:12 jer-coding

I'm sorry, I have almost no experience with Angular 4.

If you find a solution, I would be open to a pull request.

mperdeck avatar Dec 14 '17 09:12 mperdeck

Hi mperdeck,

Thanks for your reply! Have you ever seen this error (or a similiar one) with Angular 2?

jer-coding avatar Dec 14 '17 10:12 jer-coding

hello,

this was fixed with this issue: https://github.com/mperdeck/jsnlog.js/issues/56#issuecomment-365275374

Brandinga avatar Apr 16 '18 12:04 Brandinga