Open sameer-coditas opened 2 years ago
Can confirm this is happening with Angular 11 as well.
Hi,
What version of ng-lazyload-image
are you using? I can't see it in the list. If you are using 9.1.1
, can you try to downgrade it to 9.1.0
and see if it works.
Angular below 11 is no longer supported by the Angular team. 11 is however supported.
@tjoskar I am using the 9.1.1
version only.
I am on version 9.1.0 and getting the same errors
fixed this by permanently setting the version:
from
"ng-lazyload-image": "^9.1.0"
to
"ng-lazyload-image": "9.1.0"
In version 9.1.1
I rebuild the lib to make it work with Angular 13 (no source code change). Apparently something broke with older version of Angular.
Do any one of you use Angular 12 or 13?
@sanderschnydrig Your solution worked for me. Thank you.
@tjoskar I am using Angular 11. Here are some relevant dependencies I'm using:
dependencies
"@angular/animations": "~11.2.14",
"@angular/cdk": "~11.2.13",
"@angular/common": "~11.2.14",
"@angular/compiler": "~11.2.14",
"@angular/core": "~11.2.14",
"@angular/fire": "^6.1.5",
"@angular/flex-layout": "^11.0.0-beta.33",
"@angular/forms": "~11.2.14",
"@angular/material": "~11.2.13",
"@angular/platform-browser": "~11.2.14",
"@angular/platform-browser-dynamic": "~11.2.14",
"@angular/router": "~11.2.14",
"@angular/service-worker": "~11.2.14"
devDependencies
"@angular-devkit/architect": ">= 0.900 < 0.1300",
"@angular-devkit/build-angular": "~0.1102.14",
"@angular-eslint/builder": "4.3.0",
"@angular-eslint/eslint-plugin": "4.3.0",
"@angular-eslint/eslint-plugin-template": "4.3.0",
"@angular-eslint/schematics": "4.3.0",
"@angular-eslint/template-parser": "4.3.0",
"@angular/cli": "~11.2.14",
"@angular/compiler-cli": "~11.2.14",
"@angular/language-service": "~11.2.14"
@sameer-coditas Most welcome. The error messages are not very helpful to be honest :)
fixed this by permanently setting the version:
from
"ng-lazyload-image": "^9.1.0"
to
"ng-lazyload-image": "9.1.0"
this work for me! with angular 10
Any plans to fix this issue for Angular 14 or 13?
@vvasiloud I have not been able to reproduce this for Angular 12 or above. Do you have a repo where you can reproduce this that you can share?
Exception error
Environment
Package json
Can you check?