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