alexandreDavid / vue3-tour

Vue-tour in Vue3
MIT License
50 stars 21 forks source link

Nuxt 3 / "vue3-tour" is imported but could not be resolved – treating it as an external dependency. #31

Open FlvnMFO opened 2 months ago

FlvnMFO commented 2 months ago

Hi,

When implementing vue3-tour v1.0.2 in a Nuxt 3 starter setup, I have build issues. vue3-tour is implemented using Nuxt plugins. When running npm run dev I have no issue but when I run npm run build I get the following warnings : "vue3-tour" is imported by ..., but could not be resolved – treating it as an external dependency.. Then, running node .output/server/index.mjs to preview the result returns an error 500.

Reproduction link : https://stackblitz.com/edit/nuxt-vue3tour-skwbja?file=plugins%2Fvue3-tour.ts

KTKamal900 commented 3 weeks ago

Hi, Add vue3-tour to the build.transpile option in your nuxt.config.ts file

build: { transpile: ["vue3-tour"], },