AlexLavoie42 / Nuxt-Mapbox

Elegant Mapbox integration with Nuxt
81 stars 11 forks source link

Map on Netlify disappears when i refresh the page #68

Closed fabrilallo closed 10 months ago

fabrilallo commented 10 months ago

Hello everyone!

I have a Nuxt.js application that utilizes the nuxt-mapbox library. Locally, everything works perfectly with nuxt-mapbox. But on Netlify, I have a weird behaviour. When I open the page with the MapBox map, it appears correctly, but if I reload it, the map disappears. No errors in the console. You can see the attached files:

Screenshot 2023-09-28 at 3 57 33 PM Screenshot 2023-09-28 at 3 57 12 PM

Environment:

Nuxt Version: 3.6.5 Nuxt-Mapbox Version: 1.4.5 Node.js Version: 18.17.1 Operating System: macOS 13.5.1

I guess it's a Netlify behaviour since it does not happen locally. I also tried different browsers.

Do you guys have any suggestions to understand why this happens? Has the same behaviour happened to anyone?

Thank you very much in advance.

UPDATE The problem is related to my application and not to nuxt-mapbox