vue-email / nuxt

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

Cannot use custom components in Nuxt #20

Closed Mokkapps closed 6 months ago

Mokkapps commented 6 months ago

Actual Behavior

I cannot use custom components in the ~/emails folder, I get the following error

[Vue warn]: Failed to resolve component: EmailCustomLink
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Expected Behavior

It should work as described in https://github.com/vue-email/vue-email/issues/64

Reproduction

https://stackblitz.com/edit/nuxt-starter-a69obu?file=emails%2FCustomLink.vue

Flowko commented 6 months ago

Hi, you just need to use the name of the component, without the Email prefix

image

Mokkapps commented 6 months ago

Thanks, that works 👍🏻🚀