-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.need guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.
Description
Version
3.2.31
Reproduction link
Steps to reproduce
click the checkbox
What is expected?
everything is fine
What is actually happening?
TypeError: Cannot read properties of null (reading 'insertBefore')
Only reproduced in production environments
BabOuDev, Oleksii14, CraigRobertWhite, r-thomson, mfrro and 27 more
Metadata
Metadata
Assignees
Labels
❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.need guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.
Activity
kikyous commentedon Apr 2, 2022
related #5650
the error message is not same in chrome and firefox:
chrome:

firefox:

fix(runtime-core):vuejs#5657
javastation commentedon Apr 6, 2022
the error of slot function execution affects block tracking,as a workaround,add
setBlockTracking(1)
in catch.kikyous commentedon Apr 6, 2022
@javastation When remove the outer div, the error seems gone sfc playground , so add a try catch maybe not a good fix.
javastation commentedon Apr 6, 2022
Although there is no visual error in this example, it will enter full diff mode. If there are some other static html elements in addition to these three dynamic children, it will cause unnecessary performance consumption.
posva commentedon Apr 7, 2022
Not sure if try-catching the rendering of a slot is something that is supposed to be possible
kikyous commentedon Apr 7, 2022
@javastation I don't understand why add a outer div will cause this error.
javastation commentedon Apr 8, 2022
The value of the second div
vnode.el
is null which affects the subsequent process, in my opinion.baixiaoyu2997 commentedon Apr 20, 2022
hi ,i use
nuxt3 + element plus
,also have this issue, there this my can dominimal
repo:https://stackblitz.com/edit/nuxt-starter-hfqdfg?file=app.vue
error will show in
console
ff77645 commentedon Jun 9, 2022
This problem always occurs in pages that use keep-alive.
36 remaining items
FVolral commentedon Apr 19, 2023
I'm also experiencing a similar issue with PrimeVue. I replaced some unnecessary
Edit
In my case, I've a structure like this :
It seems, although not yet clear, that when I replace the root tag, which contains a v-if directive, with a tag, and then make changes in my CustomComponent, it triggers the bug. I hope this information is not misleading.
Fixed collapsable cards getting locked
BenNiks1 commentedon May 24, 2023
also faced this problem on nuxt 3.3.1
the error was not always there and I started to move from commit to commit to understand in what moment it appeared and what changes could lead to this error.
in my case, I came to a new project, which is written quite badly and there was such a construction:
i changed it to:
and my variant with useAsyncData broke everything :)
frosk1 commentedon May 26, 2023
should this error due to the massive unresolved issues be opened again?
Opened again?
drossner commentedon Jun 2, 2023
This helped a lot, in my case, removing a v-if from the top level of a template resolved the bug. Now, the v-if directive is applied to a direct child:
Now:
gbyesiltas commentedon Jun 20, 2023
Yeah I'm getting this as well and moving all the root level
v-if
s would be quite some work for our project so would be great if it could be addressed :,) Also, we are getting someCannot destructure property 'bum' of 'Y' as it is null.
errors from theunmountComponent
function which I doubt may be related?HasanMothaffar commentedon Jul 5, 2023
It turns out in my case the component that was causing this bug was wrapped in a
<transition>
component. After removing the transition, everything works fine. (Vue version:3.2.45
)Before:
After:
Move transition to tab contents
volk234 commentedon Jul 20, 2023
Same issue in nuxt 3.6.5 and vue 3.3.4.
It happens in production build only.
Fixed collapsable cards getting locked
frosk1 commentedon Aug 31, 2023
why is this one not open????
soylomass commentedon Aug 31, 2023
Because the devs want a reproduction example, something impossible to get because of the random nature of this bug, sadly. If only the error message could be a little bit more descriptive.
frosk1 commentedon Aug 31, 2023
even more important it is to take out the random nature and work on finding a reason from the devs/contributors