Closed fabrilallo closed 11 months ago
Could you try using Nuxt 3.6.5 and see if you still get the same error? I have not tested with 3.7 at all yet so it could be a breaking change there (seems like its coming from the one of the url imports?)
Thanks for the super fast response!
Yes, I will try! The error seems coming from this dynamic import in the initGeocoder()
function:
await import('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js');
I have also just released v1.4.4 of the module which fixes an issue with this exact import, so it might be worth trying that as well.
BTW i just tried for curiosity with the new version 1.4.4
you just released and nuxt 3.7.0
, and now I'm not getting that error anymore 😄
Awesome! Seems like the same root cause as #61, Nuxt 3.7 must just do a better job of catching the error.
Hello!
After building my Nuxt.js application that utilizes the
nuxt-mapbox
library, I encountered the following error when attempting to run the application:Environment:
Reproduction Steps:
nuxt-mapbox
library in the project.node .output/server/index.mjs
Expected Behavior:
I expected the Nuxt.js application to build and run without errors, including when using the
nuxt-mapbox
library.Actual Behavior:
The application fails to run, and I receive the error mentioned above.
nuxt-mapbox
documentation.npm run dev
), but the error occurs when trying to build it for production.Any suggestions? Thanks!
BTW great job! @AlexLavoie42