Closed githubnikola closed 2 years ago
Hi, Vue@3 migration was planned for this lib, hovewer there is built in solution already - https://blog.vuejs.org/posts/vue-3.2.html
@karol-f Thank you for the info. That is good to know. Anyways, the docs are too confusing on the vue.blog regarding this topic, and in the past it did prove to work as i needed it. However, I am going to give it one more shot.
@karol-f the built-in Vue 3 solution doesn't support shadow: false
option that the vue-custom-element
library does. I am building components that will be rendered by CMS where the CMS provides the styles in the page <head>
. I need those styles to apply to the custom components out-of-the-box. Being able to disable the shadowroot is absolutely critical in this scenario.
Also I have found in Vue 3 that when using a 3rd party library, such as mdbvue, that the custom elements like MdbButton
do not get translated into primitive html tags in Vue 3. Therefore the browser doesn't know how to render them. This could be a problem with the default transpile config. However, it works out-of-the-box with vue-custom-element
and the Vue 2 version of the MDB library.
Hello,
This weekend I have been trying to implement this plugin with Vue 3, but I keep getting an error in the browser's console:
It looks as if this plugin is relying on exposed util methods in Vue 2.*, and Vue 3 is missing them. I might be completely looking in the wrong direction, so I was hoping that someone here knows if this plugin supports Vue3 and if it does what is the implementation.
This is the setup in main.js
and the package.json
Thank you very much! EDIT: I know this might not be an "issue" here on github, but i didn't know where else to ask this question.