You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 in App.tsx. However, I receive the following error during compilation:
Error: Failed to scan for dependencies from entries:
C:/Users/LucaMoscatelli/progetti/kepler3_gmatics_vite/index.html
X [ERROR] Failed to resolve entry for package "kepler.gl". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
(Detailed error log follows...)
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:
importKeplerGlfrom'kepler.gl';
Additionally, I encountered similar issues with other dependencies such as react-redux and redux-thunk:
X [ERROR] Failed to resolve entry for package "react-redux". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
...
X [ERROR] Failed to resolve entry for package "redux-thunk". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
To Reproduce
Steps to reproduce the behavior:
Install Kepler.gl version 3 using yarn add kepler.gl.
Import KeplerGl in App.tsx as specified in the README.
Run the Vite development server using yarn dev.
Observe the errors during the dependency scan.
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):
OS: Windows 11
Browser: [Specify the browser if it's relevant]
Version of Kepler.gl: 3
Additional Context
I tried several solutions, including:
Updating and re-installing dependencies.
Modifying import statements as recommended in some forum posts.
Checking for compatibility issues between Kepler.gl and Vite.
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: