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

Issue building a React project #16

Open
keul opened this issue Jul 19, 2024 · 3 comments
Open

Issue building a React project #16

keul opened this issue Jul 19, 2024 · 3 comments

Comments

@keul
Copy link

keul commented Jul 19, 2024

Just installed the react component and tried to use it, following Aisiru documentation on my Twin.

@memori.ai/memori-api-client v5.0.0

Can't resolve '@react-leaflet/core' in 'node_modules/@memori.ai/memori-react/esm/components/VenueWidget'

If you're trying to use a package make sure that '@react-leaflet/core' is installed. If you're trying to use a local file make sure that the path is correct.

File: node_modules/@memori.ai/memori-react/esm/components/VenueWidget/VenueWidget.js:6:0

failed Re-building development bundle - 3.498s
ERROR in ./node_modules/@memori.ai/memori-react/esm/components/VenueWidget/VenueWidget.js 6:0-56
Module not found: Error: Can't resolve '@react-leaflet/core' in 'node_modules/@memori.ai/memori-react/esm/components/VenueWidget'
 @ ./node_modules/@memori.ai/memori-react/esm/components/PositionDrawer/PositionDrawer.js 4:0-53 7:274-285
 @ ./node_modules/@memori.ai/memori-react/esm/components/MemoriWidget/MemoriWidget.js 10:0-62 2274:625-639
 @ ./node_modules/@memori.ai/memori-react/esm/index.js 5:0-66 96:36-48
@nzambello
Copy link
Member

Ciao Luca,
I think I'd need some more information.
Which version of React are you using? In which environment (cra, vite, next, ...)?

@keul
Copy link
Author

keul commented Jul 19, 2024

👋

I was playing with an old Gatbsy installation, but what I found weird is the @react-leaflet/core dependency.

I can with another simpler env as soon as I've time

@keul
Copy link
Author

keul commented Jul 19, 2024

Did a quick check

  • everything is OK with a simple vite installation
  • same error if I use the latest gatsby available (just followed the getting started and added a page with the Memori component)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants