Open luca-moscatelli opened 1 month ago
The import for Kepler GL Component should be from @kepler.gl/components
and this package should be installed separately.
So your import should look something like this:
import KeplerGl from "@kepler.gl/components";
Not only that if you are using the actions
or constants
that should be installed separately as well.
I hope that helps :)
Describe the Bug
I'm encountering an issue while trying to compile Kepler.gl version 3 in my project. I installed Kepler.gl using
yarn add kepler.gl
and followed the exact configuration provided in the README to set it up inApp.tsx
. However, I receive the following error during compilation:The error suggests that the package "kepler.gl" might have incorrect entry points specified in its
package.json
, leading to a failure during the dependency scan.This issue was triggered by the following import statement in
src/App.jsx
:Additionally, I encountered similar issues with other dependencies such as
react-redux
andredux-thunk
:To Reproduce
Steps to reproduce the behavior:
yarn add kepler.gl
.KeplerGl
inApp.tsx
as specified in the README.yarn dev
.Expected Behavior
I expected Kepler.gl to compile correctly without dependency resolution errors, and the application to load without issues.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional Context
I tried several solutions, including:
None of these attempts fixed the problem. It seems that Kepler.gl version 3 might require a different configuration compared to previous versions, particularly when used with Vite.
If anyone has successfully integrated Kepler.gl version 3 with Vite, or knows what could be causing these issues, I would appreciate your help. Thanks in advance!