Load vuetify plugin in a custom element #7932
Unanswered
mirko-lavalle
asked this question in
Help/Questions
Replies: 1 comment
-
I am getting the same error. Are you able to resolve this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to build a custom element with vue3 and vuetify 3. No issue to achieve that with vue 2 and vuetify 2 using vue-custom-element, but a lot of issues with new versions 3.
This is my lib.js used to build custom element:
This is my vue.config.js
this is the script i run to build the custom element as library:
vue-cli-service build --target lib --inline-vue --name component-main ./src/lib.js
When i load component in html page it can not properly load vuetify components and it returns the following errors:
Error: [Vuetify] Could not find defaults instance TypeError: Cannot read properties of null (reading 'parentElement')
If i remove tag from component template it loads all but with no vuetify.
What is wrong in my configurations?
Thanks in advanced
Beta Was this translation helpful? Give feedback.
All reactions