deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] Cannot install deck.gl due to error below (luma.gl dependency)

Open jonnycapo-dev opened this issue 1 year ago • 4 comments

Description

It was working fine until a few days ago, but since yesterday npm has been giving me this error launching npm i. In my opinion, it is wrong to use alpha/beta dependencies in a production library.

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: @evomatic/[email protected]
npm error Found: @luma.gl/[email protected]
npm error node_modules/@luma.gl/core
npm error   peer @luma.gl/core@"~9.1.9" from @deck.gl/[email protected]
npm error   node_modules/@deck.gl/layers
npm error     @deck.gl/layers@"^9.1.14" from the root project
npm error   @luma.gl/core@"~9.1.9" from @deck.gl/[email protected]
npm error   node_modules/@deck.gl/core
npm error     peer @deck.gl/core@"^9.1.0" from @deck.gl/[email protected]
npm error     node_modules/@deck.gl/layers
npm error       @deck.gl/layers@"^9.1.14" from the root project
npm error   1 more (@luma.gl/engine)
npm `error`
npm error Could not resolve dependency:
npm error peer @luma.gl/core@"~9.2.0-beta.1" from @luma.gl/[email protected]
npm error node_modules/@luma.gl/shadertools
npm error   peer @luma.gl/shadertools@"^9.1.0" from @luma.gl/[email protected]
npm error   node_modules/@luma.gl/engine
npm error     peer @luma.gl/engine@"~9.1.9" from @deck.gl/[email protected]
npm error     node_modules/@deck.gl/layers
npm error       @deck.gl/layers@"^9.1.14" from the root project
npm error     1 more (@deck.gl/core)
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Flavors

  • [ ] Script tag
  • [x] React
  • [ ] Python/Jupyter notebook
  • [x] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CARTO
  • [ ] ArcGIS

Expected Behavior

No response

Steps to Reproduce

Launch the fllowing command: npm i deck.gl

Environment

  • Framework version: React 18.3.1, deck.gl@latest
  • Browser: -
  • OS: Windows 11
  • Node: 22.18.0

Logs

No response

jonnycapo-dev avatar Sep 25 '25 12:09 jonnycapo-dev

I have the same issue. Temporary solution use overrides in the package.json file:

"overrides": {
	"@luma.gl/constants": "9.1.9",
	"@luma.gl/core": "9.1.9",
	"@luma.gl/engine": "9.1.9",
	"@luma.gl/gltf": "9.1.9",
	"@luma.gl/shadertools": "9.1.9",
	"@luma.gl/webgl": "9.1.9"
}

nyates42 avatar Sep 25 '25 23:09 nyates42

Can you try again? I've published a patch of luma.gl with correct peer dependencies.

Pessimistress avatar Sep 26 '25 01:09 Pessimistress

Thank you @Pessimistress , Can confirm working again now.

nyates42 avatar Sep 26 '25 01:09 nyates42

Everything works fine now! Thank you @Pessimistress.

jonnycapo-dev avatar Sep 26 '25 08:09 jonnycapo-dev