memori-ai / memori-react

React library to integrate a Memori in your app or website
https://memori-ai.github.io/memori-react/
Other
3 stars 0 forks source link

Issue building a React project #16

Open keul opened 3 months ago

keul commented 3 months ago

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 commented 3 months ago

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

keul commented 3 months ago

👋

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 commented 3 months ago

Did a quick check