AlexLavoie42 / Nuxt-Mapbox

Elegant Mapbox integration with Nuxt
81 stars 11 forks source link

after nuxt 3.6.5, nuxt-mapbox is not compatible #72

Closed llallallall closed 9 months ago

llallallall commented 9 months ago

An error occurs like below

This module cannot be imported in the Vue part of your app. [importing @nuxt/kit from node_modules/nuxt-mapbox/dist/module.mjs?v=f57ae0f1]

until nuxt 3.6.5, it's working tested) rm -rf .nuxt node_modules && npm install nuxt@3.6.5 --save-exact && npm install nuxt-mapbox && npm run dev

{ "name": "nuxt-app", "private": true, "type": "module", "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "devDependencies": { "mapbox-gl": "^2.15.0", "nuxt": "3.6.5", "vue": "^3.3.7", "vue-router": "^4.2.5" }, "dependencies": { "nuxt-mapbox": "^1.4.5-1" } }

volkipp commented 9 months ago

Thanks for identifying the last working version! I'm running into the same issue

AlexLavoie42 commented 9 months ago

Could you please provide a reproduction using the playground?

I have been running the module in production using the latest Nuxt version (v3.8.0) and I've had no such issue.

AlexLavoie42 commented 9 months ago

Make sure you are also using the latest version of typescript. I was getting similar errors in CI after the 3.8.0 update that was caused by an old version of typescript being used.

AlexLavoie42 commented 9 months ago

Closing this for now as I have updated the module to Nuxt 3.8.0 with #73