-
Notifications
You must be signed in to change notification settings - Fork 143
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
Angular6 - ng build / serve --prod - Error during template compile of 'AppModule' #368
Comments
I have the same problem,plz help |
in ionic4 angular7,build with --prod ,only show the default image,it is ok when build without --prod |
Is it working if you don't use
|
Hey @tjoskar I had already tried to use the Please, see below. 1. Setting up the module without the
|
Hello @tjoskar ng-lazyload-img component loads image by scroll trigger what is a default behavior, please help to fixed it |
Hi @kararade, if you don't use |
@kahnchen1028, what version of Angular are you using? @kararade, I created a Angular 7 app and installed |
@tjoskar let me check what happens upgrading to the version 7. |
I have the exactly same issue, and I am using angular version 7. is there any solution for the issue? |
@johnqiuwan, can you create a small repo where you reproduce the issue? I did the following:
Did the following code changes: And run |
I created a pull request that recreates the issue. I was able to fix it in my project by moving the import with the forRoot out of the child module and into the main app module. Now it works fine for me and I don't see this issue anymore. |
@bryantlikes, I just tried it out and I don't get the error. For you that it doesn't work for; what version of angular-cli do you have? ( |
Angular CLI: 7.3.5 rxjs 6.4.0 |
@tjoskar Good day, in my behavior i have no error, just some images not loaded in AOT compilation, same as not using intersectionObserverPreset. All images load after scrolling
Angular CLI: 7.3.2 |
@tjoskar Ou, updated to 5.1.1 and seemingly bug is gone) |
@Gromov-Roman, interesting. |
Hi, I can confirm that updating solves the issue |
|
Updating to ng-lazyload-image@5.1.2 and angular 7 solved the issue. Thanks for resolving . |
I have this problem when I'm building or seving an Angular6 application for PROD with
ng serve --prod
orng build --prod
This is what I have in the line
app/app.module.ts(84,47)
Versions:
It seems to have something to do with AOT but I can't find a way to fix it. This error does not occur when normally running the commands
ng build
orng serve
I appreciate any help
Thanks!
The text was updated successfully, but these errors were encountered: