You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add vuetify to an existing vue3 project but it triggers this error in some views: TypeError: Cannot read properties of null (reading 'insertBefore')
Removing <v-app> and <v-main> from the main App.vue file is enough to make it disappear. Any idea why it happens or how to fix it? I didn't do anything else apart from adding vuetify to the project, both following these istructions to add it to an existing project and also adding vuetify to my project the same way as yarn create vuetify (the build system is a bit different). In both cases I get the same error, which I don't get in other apps where I've already added vuetify.
I'm sorry for not being able to provide a repro but it's a customer's application and I have no idea what triggers this issue and why it happens only with vuetify.
This is wired: doing the following from a parent component onMounted(() => { selected.value = 5 }) where the template is <BrokenChild not-existing="selected"> is enough to trigger the issue. The result is the same either if not-existing is an existing or not existing prop of BrokenChild. It only happens with the presence of a <v-app/main> tag.
I started tearing the whole application down piece by piece and it turned out to be triggered by a dynamic component which uses defineAsyncComponent. The weird thing is that the dynamic component per se isn't an issue: it causes the error only if it's rendered inside the default slot of a <button> (it's really nothing more than an icon). Even weirder if I render it inside a <v-btn> instead everything works!
Environment
Vuetify Version: 3.6.13
Vue Version: 3.4.32
Browsers: Chrome 126.0.0.0
OS: Linux x86_64
Steps to reproduce
I'm trying to add vuetify to an existing vue3 project but it triggers this error in some views:
TypeError: Cannot read properties of null (reading 'insertBefore')
Removing
<v-app>
and<v-main>
from the mainApp.vue
file is enough to make it disappear. Any idea why it happens or how to fix it? I didn't do anything else apart from adding vuetify to the project, both following these istructions to add it to an existing project and also adding vuetify to my project the same way as yarn create vuetify (the build system is a bit different). In both cases I get the same error, which I don't get in other apps where I've already added vuetify.I'm sorry for not being able to provide a repro but it's a customer's application and I have no idea what triggers this issue and why it happens only with vuetify.
Expected Behavior
Doesn't trigger any error in the console
Actual Behavior
Triggers an error in the console
Reproduction Link
https://github.com/darkbasic
The text was updated successfully, but these errors were encountered: