Vue2.insertAdjacentElement is not a function #10386
Labels
feat: ssr
p3-downstream-blocker
Blocking the downstream ecosystem to work properly (priority)
regression
The issue only appears after a new release
Describe the bug
I imported a Vue 2 component library in
vitest
. The test should pass but it throws the following TypeError:I don't know whether it is a bug of
vite
,vitest
orjsdom
. Since there is no such issue when Vite <= 3.1.4, I post this bug here.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-lhw5je
Steps to reproduce
Open the link and wait for the test to fail
System Info
System: OS: Linux 5.0 undefined CPU: (6) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vite: ^3.1.6 => 3.1.6
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: