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, [email protected] 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:
rm yarn.lockyarn --ignore-enginesyarn startExpected behavior
package.json should target only compatible versions of deck.gl, allowing for yarn add to external projects.
Desktop (please complete the following information):
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)
We will lock it to 7.1.5 in kepler.gl.
Awesome, thanks @heshan0131! I went ahead and opened a PR for this to save you some time:
https://github.com/keplergl/kepler.gl/pull/688
Thanks for the workaround @treyhakanson! @heshan0131 any idea when can we expect an official patch for this?
keplerl.[email protected] is released with this
Most helpful comment
We will lock it to 7.1.5 in kepler.gl.