question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 10 compatibility

See original GitHub issue

Hi, does this module work with angular 10? I have tried to get it working but I am getting errors when I run it

ERROR Error: inject() must be called from an injection context
    at injectInjectorOnly (core.js:934)
    at ɵɵinject (core.js:950)
    at Module.ɵɵdirectiveInject (core.js:21113)
    at NodeInjectorFactory.NgxImageZoomComponent_Factory [as factory] (ngx-image-zoom.js:315)
    at getNodeInjectable (core.js:4274)
    at instantiateAllDirectives (core.js:8110)
    at createDirectivesInstances (core.js:7484)
    at ɵɵelementStart (core.js:14811)
    at Module.ɵɵelement (core.js:14862)
    at ImageViewComponent_Template

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
krupnik-mcommented, Jan 21, 2021

I have an issue with install of ngx-image-zoom for Angular 11, node -v 15.6.0

npm i ngx-image-zoom
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: winafar@11.0.0
npm ERR! Found: @angular/common@11.1.0
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~11.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^9.0.1" from ngx-image-zoom@0.6.0
npm ERR! node_modules/ngx-image-zoom
npm ERR!   ngx-image-zoom@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Do someone know how it could be resolved?

0reactions
wittlockcommented, May 23, 2022

After a bit of a delay there is now a non-beta 1.0.1 out on NPM that fixes compatibility with new Angular versions and also brings a few small new features, see changelog

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a compatibility list for Angular / Angular-CLI and Node ...
I would have prefered an official resource, but I guess this is the best we can get for now (and it seems pretty...
Read more >
angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Your issue is that Angular 9.1 only supports Node.js 10 and 12. You must downgrade to Node.js 12 and a package manager version...
Read more >
Compatibility list for Angular/Angular-CLI and Node.js
Angular CLI Angular NodeJS TypeScript – 2.x 6.0.x or later minor 2.0.x 1.0.6 4.x 6.9.x or later minor 2.2.x 1.1.3 4.x 6.9.x or later minor 2.3.x...
Read more >
Angular versioning and releases
Minor releases are fully backward-compatible; no developer assistance is expected during update, ... For example, to update from version 10 to version 12:....
Read more >
Update Angular to v15
Angular v15 supports node.js versions: 14.20.x, 16.13.x and 18.10.xlink. In v15, Angular no longer supports node.js versions 14.[15-19].x or 16.[10-12].x.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found