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

Incompatibility between deck.gl and nebula.gl versions during npm install #838

Closed
kboul opened this issue Dec 7, 2022 · 2 comments
Closed

Comments

@kboul
Copy link

kboul commented Dec 7, 2022

Describe the bug

I have the following versions installed:

"react": "17.0.2",
"@deck.gl/core": "8.4.0",
"@deck.gl/layers": "8.4.0",
"@deck.gl/react": "8.4.0",
"@nebula.gl/edit-modes": "0.21.1",
"@nebula.gl/layers": "0.21.1",

Actual Result

When I run npm i I get

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @deck.gl/geo-layers@8.8.20
npm ERR! Found: @loaders.gl/core@2.3.13
npm ERR! node_modules/@loaders.gl/core
npm ERR!   @loaders.gl/core@"^2.3.0" from @deck.gl/core@8.4.0
npm ERR!   node_modules/@deck.gl/core
npm ERR!     @deck.gl/core@"8.4.0" from the root project
npm ERR!     peer @deck.gl/core@"^8.0.0" from @deck.gl/extensions@8.8.20
npm ERR!     node_modules/@deck.gl/extensions
npm ERR!       peer @deck.gl/extensions@"^8.0.0" from @deck.gl/geo-layers@8.8.20
npm ERR!       node_modules/@deck.gl/geo-layers
npm ERR!         peer @deck.gl/geo-layers@"^8.0.3" from @nebula.gl/layers@0.21.1
npm ERR!         node_modules/@nebula.gl/layers
npm ERR!     5 more (@deck.gl/geo-layers, @deck.gl/layers, ...)
npm ERR!   peer @loaders.gl/core@"^2.3.0" from @deck.gl/layers@8.4.0
npm ERR!   node_modules/@deck.gl/layers
npm ERR!     @deck.gl/layers@"8.4.0" from the root project
npm ERR!     peer @deck.gl/layers@"^8.0.0" from @deck.gl/geo-layers@8.8.20
npm ERR!     node_modules/@deck.gl/geo-layers
npm ERR!       peer @deck.gl/geo-layers@"^8.0.3" from @nebula.gl/layers@0.21.1
npm ERR!       node_modules/@nebula.gl/layers
npm ERR!         @nebula.gl/layers@"0.21.1" from the root project
npm ERR!     1 more (@nebula.gl/layers)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @loaders.gl/core@"^3.0.0" from @deck.gl/geo-layers@8.8.20
npm ERR! node_modules/@deck.gl/geo-layers
npm ERR!   peer @deck.gl/geo-layers@"^8.0.3" from @nebula.gl/layers@0.21.1
npm ERR!   node_modules/@nebula.gl/layers
npm ERR!     @nebula.gl/layers@"0.21.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @loaders.gl/core@3.2.12
npm ERR! node_modules/@loaders.gl/core
npm ERR!   peer @loaders.gl/core@"^3.0.0" from @deck.gl/geo-layers@8.8.20
npm ERR!   node_modules/@deck.gl/geo-layers
npm ERR!     peer @deck.gl/geo-layers@"^8.0.3" from @nebula.gl/layers@0.21.1
npm ERR!     node_modules/@nebula.gl/layers
npm ERR!       @nebula.gl/layers@"0.21.1" 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.

Expected Result

I expect npm install to run without any errors and not make me use the force command to install my dependencies.

Reproduce Steps

Install the following versions and try hitting npm i

What is the recommended @nebula.gl version when having deck.gl 8.4.0?
I cannot just simply run npm i without specifying the versions, the project is big and I cannot afford upgrading all the packages
to their latest versions at least at the moment.
Any help is highly aprreciated.

@igorDykhta
Copy link
Collaborator

@kboul
Try to resolve @deck.gl/geo-layers to 8.4.x as well. As you can see @deck.gl/geo-layers resolves to 8.8.20 in your project.

@deck.gl to 8.6.x and 8.8.x should be compatible with @nebula.gl 1.0.x-alpha, but not @nebula.gl 0.21.x

@kboul
Copy link
Author

kboul commented Dec 7, 2022

I had to manually install every single version of nebula.gl to find which one is closer to my deck.gl version.
Wouldn't be much easier if there was a list displaying which deck gl core version is compatible with the correspondent nebula.gl version?

I did not have @deck.gl/geo-layers installed, it only came probably in the surface with the peer dependencies.
Finally I resolved it by installing deck.gl version 8.4.6 and nebula.gl version 0.23.7. That what I was looking for in the first place.

@kboul kboul closed this as completed Dec 7, 2022
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