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.

Deck.gl Versioning Issue

See original GitHub issue

Describe the bug The deck.gl version is set to ^7.1.5 in the package.json, and the lockfile specifies 7.1.5. So, when cloning and running this repository as-is, everything works properly. However, when using yarn add kepler.gl in an external project, deck.gl@7.2.1 is installed. This leads to the following error upon attempting to load data (occurs within deck.gl):

Uncaught TypeError: Cannot assign to read only property 'mousePosition' of object '[object Object]'

To Reproduce This can be simulated in this repository by removing the lockfile:

  1. Clone repo, navigate into directory
  2. rm yarn.lock
  3. yarn --ignore-engines
  4. yarn start
  5. Go to web browser, attempt to load a dataset
  6. See error in console

Expected behavior package.json should target only compatible versions of deck.gl, allowing for yarn add to external projects.

Desktop (please complete the following information):

  • OS: macOS Mojave
  • Browser: N/A
  • Version: 1.1.3
  • Yarn Version: 1.15.2
  • Node Version: 11.14.0

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
heshan0131commented, Aug 16, 2019

We will lock it to 7.1.5 in kepler.gl.

2reactions
treyhakansoncommented, Aug 14, 2019

For those looking for a fix in the meantime, you can add the following to your package.json:

"resolutions": {
    "deck.gl": "7.1.5"
 }

and then re-run yarn install (note that npm does not support resolutions, so you must be using yarn)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Guide - deck.gl
Upgrade Guide. Upgrading from deck.gl v8.7 to v8.8. Breaking changes. In order to generalize the TileLayer to work with non-OSM indexing systems, ...
Read more >
deck.gl - npm
A suite of 3D-enabled data visualization overlays, suitable for react-map-gl. Latest version: 8.8.20, last published: a month ago.
Read more >
deck.gl - npm Package Health Analysis - Snyk
Learn more about deck.gl: package health score, popularity, security, ... Security and license risk for significant versions ... Open Issues: 169.
Read more >
issue requiring nebula.gl - The Observable Forum
Hi, I'm having an issue requiring the library nebula.gl in the notebook I ... Error: deck.gl - multiple versions detected: 8.0.17 vs 8.3.7....
Read more >
Introducing deck.gl v4.0. by Ib Green | by vis.gl - Medium
We take backwards compatibility of deck.gl very seriously. deck.gl follows semver versioning rules, which require that any change to existing functionality, no ...
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