Skip to content
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

kepler 3 doesn't work with yarn add #2671

Open
luca-moscatelli opened this issue Oct 2, 2024 · 0 comments
Open

kepler 3 doesn't work with yarn add #2671

luca-moscatelli opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@luca-moscatelli
Copy link

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

import KeplerGl from '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:

  1. Install Kepler.gl version 3 using yarn add kepler.gl.
  2. Import KeplerGl in App.tsx as specified in the README.
  3. Run the Vite development server using yarn dev.
  4. 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!

@luca-moscatelli luca-moscatelli added the bug Something isn't working label Oct 2, 2024
@luca-moscatelli luca-moscatelli changed the title kepler 3 dosen't work with yarn add kepler 3 doesn't work with yarn add Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant