keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.28k stars 1.73k forks source link

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

Open jaballogian opened 2 years ago

jaballogian commented 2 years ago

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):

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 commented 2 years ago

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.

rhythnic commented 2 years ago

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