You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After trying to implement Mapbox using this component (as well as the original vue-mapbox), I got blocked by lack of support for SSR.
The component is so problematic for SSR that even when forced to load only on the client (safeguarding with <ClientOnly/> element in Gridsome and importing it via dynamic import, it's impossible to not have unhandled promise rejection errors while building the site.
Where would one start when it comes to making this component compatible with SSR? I'll be happy to contribute, but I also noticed that there's quite a few outstanding PRs, and so I wonder whether it won't become stale.
The text was updated successfully, but these errors were encountered:
Hey,
for Nuxt I've created a mapbox.js file inside the plugins folder which registers the Components i need.
Inside the nuxt.config.js I've added this plugin in client-mode. After that you have to add the css files to the layout, page or component and you are ready to use mapbox inside the -tag
After trying to implement Mapbox using this component (as well as the original
vue-mapbox
), I got blocked by lack of support for SSR.The component is so problematic for SSR that even when forced to load only on the client (safeguarding with
<ClientOnly/>
element in Gridsome and importing it via dynamic import, it's impossible to not have unhandled promise rejection errors while building the site.Where would one start when it comes to making this component compatible with SSR? I'll be happy to contribute, but I also noticed that there's quite a few outstanding PRs, and so I wonder whether it won't become stale.
The text was updated successfully, but these errors were encountered: