How to declare native custom element? #1122
-
[Vue warn]: Failed to resolve component: ion-icon I try to do it like this but it doesn't work
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://vuejs.org/api/application.html#app-config-compileroptions
So you might have to configure it using your build tool, with Laravel Mix it might be something like the following (not sure, have not tested this): mix.vue({
version: 3,
options: {
compilerOptions: {
isCustomElement: tag => tag.startsWith('ion-')
},
},
}) |
Beta Was this translation helpful? Give feedback.
https://vuejs.org/api/application.html#app-config-compileroptions
So you might have to configure it using your build tool, with Laravel Mix it might be something like the following (not sure, have not tested this):