Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular: “ng build -prod” produces error #156

Open
jer-coding opened this issue Dec 13, 2017 · 3 comments
Open

Angular: “ng build -prod” produces error #156

jer-coding opened this issue Dec 13, 2017 · 3 comments

Comments

@jer-coding
Copy link

jer-coding commented Dec 13, 2017

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,

@mperdeck
Copy link
Owner

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

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

@jer-coding
Copy link
Author

jer-coding commented Dec 14, 2017

Hi mperdeck,

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

@Brandinga
Copy link

hello,

this was fixed with this issue:
mperdeck/jsnlog.js#56 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants