-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Module not found: Error: Can't resolve '@kepler.gl/components' #2842
Comments
Now is |
Hi @AlfredoRuizXcaliburmp |
Hi @igorDykhta It now detects the alpha version of both components and redicers. I still can't get it to show me the base map with either Mapbox or Maplibre and I still get the error that it can't locate the file: /node_modules/@formatjs/fast-memoize/index.ts Thank you very much and happy holidays |
Hi @AlfredoRuizXcaliburmp |
Hi @igorDykhta Thank you very much for your help. The error occurs when I run a react.js project locally without build. |
No, esbuild shouldn't be mandatory. |
I'm playing a little crazy |
I believe there is a new config API where your app can configure which basemap to use. I.e. mapbox and maplibre are not both included so that they can be switched dynamically, you need to build your app with one or the other, and maplibre is the default. |
Hi there |
@AlfredoRuizXcaliburmp I don't think there is an example for custom basemap libraries. You can pass custom configuration to your app like this: To use mapbox you need to pass:
I'm trying to restore support for MapLibre and Mapbox in this PR: |
@AlfredoRuizXcaliburmp In the latest alpha release we added back Mapbox styles to the basemap style dropdown. Let me know how it works for you. |
Hey, did you end up figuring out the parseInBatches is not a function / multiple versions of react-palm issue? I am running into the same thing. |
Very good, in the end we left it stopped. So I couldn't solve the problem. |
@AlfredoRuizXcaliburmp here is a minimal app based on the 3.1 version of kepler.gl and getting-started docs bundled with esbuild, with both MapLibre and Mapbox enabled. |
@igorDykhta thanks a lot |
Is the expected size of the bundle.js files that come from this build 25MB - 48MB ? These files that are being generated are too large to deploy it, is this expected behavior? @igorDykhta |
@andrewm898 Most likely, this isn't expected. I see that the UMD bundle is 12MB. You can open an issue and provide details on how you got these numbers. I'll also investigate later using a bundle analyzer. |
This is using the exact code you attached in that .zip file here, same esbuild, yarn.lock etc. I have tried it with and without npm bootstrap first, and with adding --minify, getting 25MB for bundle.js and 43.96 for bundle.js.map |
Describe the bug
Hi there
I'm trying to add kepler.gl to my react project but I can't get it to recognize the module. I've checked that it's in Packjson and Node_modules.
Screenshots


Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: