kepler.gl
kepler.gl copied to clipboard
[Bug] ModuleNotFoundError: Could not find module in path: 'kepler.gl/dist/localization/fi'
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:
- Installing and importing the
kepler.gl
library - The error appears
Expected behavior No error appears.
Screenshots
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
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.
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.
I created a different app using Material UI v5 also react
and react-dom
v17. It worked as seen in the image below.
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.
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.
I'm also seeing this error using the Parcel bundler, kepler.gl v2.5.5, and React v16 or v17.