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

Issues with OSD peer dependency #208

Open
raulgabor opened this issue Jun 17, 2024 · 1 comment
Open

Issues with OSD peer dependency #208

raulgabor opened this issue Jun 17, 2024 · 1 comment

Comments

@raulgabor
Copy link

Hi,
I'm currently using OSD v3.1.0 and I would like to update it to the latest version. Unfortunately, when I do this the peer dependency is being overridden and on a clean installation of node_modules I get errors, because the peer dependency is OSD v3 and I have v4. Is there any way I can do the necessary update without forcing the dependency conflict. I might be wrong, but I think updating the peerDependency from package.json might solve the problem and I was wondering if this could be possible. Thank you!

These are the errors I get:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @recogito/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/openseadragon
npm ERR!   openseadragon@"^4.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer openseadragon@"^3.0.0" from @recogito/[email protected]
npm ERR! node_modules/@recogito/annotorious-openseadragon
npm ERR!   @recogito/annotorious-openseadragon@"^2.7.10" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/openseadragon
npm ERR!   peer openseadragon@"^3.0.0" from @recogito/[email protected]
npm ERR!   node_modules/@recogito/annotorious-openseadragon
npm ERR!     @recogito/annotorious-openseadragon@"^2.7.10" 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.
@rsimon
Copy link
Member

rsimon commented Jun 17, 2024

Hi, yes, you are right of course. It's only the peerDependencies declaration. (Annotorious itself has been compatible with OSD 4 for a while.) I just pushed a fix & published a new version of the library (2.7.18).

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

2 participants