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

[Bug] ModuleNotFoundError: Could not find module in path: 'kepler.gl/dist/localization/fi'

Open jaballogian opened this issue 3 years ago • 2 comments

Describe the bug Error while installing and importing the kepler.gl library

ModuleNotFoundError
Could not find module in path: 'kepler.gl/dist/localization/fi' relative to '/node_modules/kepler.gl/dist/localization/index.js'

To Reproduce Steps to reproduce the behavior:

  1. Installing and importing the kepler.gl library
  2. The error appears

Expected behavior No error appears.

Screenshots image

Sometimes this error appears and sometimes other error appears but mostly this error appears.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome v97

Smartphone (please complete the following information): Not using smartphone

Additional context Here is the demo: https://codesandbox.io/s/learn-kepler-gl-m9k52?file=/src/SimpleApp.jsx

jaballogian avatar Jan 26 '22 15:01 jaballogian

In the demo above, the kepler.gl library version was 2.5.5 and the react and react-dom libraries were 17.0.2.

Then I downgraded the kepler.gl library version into 2.0.1 also react and react-dom libraries into 16.13.1 and it worked as seen in the image below.

image

Then I tried to add Material UI v5 https://mui.com/ components into my app and there was an error as seen in the image below.

image

I created a different app using Material UI v5 also react and react-dom v17. It worked as seen in the image below. image

Then with the second app, I downgraded the react and react-dom versions into 16.13.1 (in order to support the kepler.gl library) but got the same error below as the second image above.

image

So, based on my examples above, I could assume that the current version of kepler.gl hasn't supported react and react-dom version 17.

jaballogian avatar Feb 04 '22 10:02 jaballogian

I'm also seeing this error using the Parcel bundler, kepler.gl v2.5.5, and React v16 or v17.

rhythnic avatar Mar 23 '22 13:03 rhythnic