Closed nikklass closed 2 years ago
Hey, can you provide a Sandbox to reproduce ?
@N00ts Any update on this? I also getting the same error with Vue 3. Here is the sandbox at StackBlitz if you still looking for sandbox environment. You can see the error in the console.
https://stackblitz.com/edit/vue3-app-bgu5rj
I'm a little busy right now but I promise I will take a look asap !
It work perfectly fine with last versions of vue in a codesandbox. https://codesandbox.io/s/basic-1g2jt?from-embed. Maybe there is something wrong with stackblitz configuration. Do you also have the problem on a local repo ? Are you working with windows / linux ?
@N00ts I am working on the windows environment and I have the issue same as stackblitz.
@thangap2 can you provide your package.json dependencies ?
@N00ts Any update on this? I am also getting the same error with Vue 3
![]()
I face the same issue. Did you find a solution?
Just update vue version in package.json and it will work :)
"vue": "^3.2.26", "vue3-treeview": "^0.3.5"
Closed since no answer
Hi.
I cannot run the provided example in vue 3. Please assist. Am getting the following set of errors/ warnings when using this plugin in a vue 3 component:
[Vue warn]: provide() can only be used inside setup(). [Vue warn]: onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement. [Vue warn]: resolveComponent can only be used in render() or setup().
This is my code: