Subscribe on changes!

Router crashes on pages with more than 9 root elements

avatar
Jul 1st 2021

Version

3.1.2

Reproduction link

https://codesandbox.io/s/happy-euclid-610gx

Steps to reproduce

Switch multiple times between any page and page C. Error happens on the second time and will break page rendering after 1st element.

What is expected?

No error

What is actually happening?

"Unhandled error during execution of scheduler flush" --> "Cannot read property 'cloneNode' of null"


Problem is related to vue@3.1.2 — downgrading to vue@3.1.1 solves the problem. Problem can also be worked around by wrapping page content in a div.

Smells the same as #4023, #4031 and #4030

avatar
Jul 1st 2021

Thanks, I added a repro without the router at #4023