vue-email / nuxt

💚 Official Nuxt module for Vue Email. Build email templates with Vue components.
https://vuemail.net/getting-started/nuxt-nitro
MIT License
109 stars 3 forks source link

Cannot find package 'vue-email' in Vercel deployment with Nuxt #28

Closed jonathanwilke closed 7 months ago

jonathanwilke commented 7 months ago

Hey there,

we are using the @vue-email/nuxt package in our app just like described in the docs and it runs perfectly fine in our local environment. But when we deploy to Vercel we get the following error message:

[nuxt] [request error] [unhandled] [500] Cannot find package 'vue-email' imported from /var/task/node_modules/@vue-email/compiler/dist/index.mjs
  at packageResolve (node:internal/modules/esm/resolve:858:9)  
  at moduleResolve (node:internal/modules/esm/resolve:915:20)  
  at moduleResolveWithNodePath (node:internal/modules/esm/resolve:1135:12)  
  at defaultResolve (node:internal/modules/esm/resolve:1178:79)  
  at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)  
  at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)  
  at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)  
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)  
  at link (node:internal/modules/esm/module_job:84:36)

Any idea what could be the reason?

We also tried to add vue-email as a dep manually, but nothing changed.

Flowko commented 7 months ago

yeah i think i know, will check it

Flowko commented 7 months ago

could you please update to 0.8.14 u can remove vue-email if you added it, remove ur package-lock if u can

jonathanwilke commented 7 months ago

Yes, it's working now! Thanks so much for the fast support 🚀