S
SolidJS•15mo ago
phungleson

Vitest 0.34.4 caused `You appear to have multiple instances of Solid`

Hi peeps, I recently upgraded vitest from 0.34.2 to 0.34.4 and it starts showing for every single test:
stderr | unknown test
You appear to have multiple instances of Solid. This can lead to unexpected behavior.
stderr | unknown test
You appear to have multiple instances of Solid. This can lead to unexpected behavior.
stderr | test name
computations created outside a `createRoot` or `render` will never be disposed
stderr | test name
computations created outside a `createRoot` or `render` will never be disposed
I understand what it means and I am sure I have only 1 version of solid, but I don't know enough to go around to debug this further. I wonder if there is a way get more information to debug this. Vitest 0.34.2 doesn't show that issue. I am using
"vitest": "^0.34.4",
"vite": "^4.4.9",
"solid-js": "^1.7.11"
"@solidjs/testing-library": "^0.8.4",
"vitest": "^0.34.4",
"vite": "^4.4.9",
"solid-js": "^1.7.11"
"@solidjs/testing-library": "^0.8.4",
Thanks,
12 Replies
phungleson
phunglesonOP•15mo ago
To be correct I encountered the issues since vitest 0.34.3, nothing updated only changing vitest version.
subframe7536
subframe7536•15mo ago
same here! have you solve it?
phungleson
phunglesonOP•15mo ago
I checked out Vitest code and tried a few things but nothing seem to resolve the issue
Tom
Tom•13mo ago
Any solutions to this? I'm running into the same issue vite 4.5.0 vite-plugin-solid" 2.7.2 vitest 0.34.6
subframe7536
subframe7536•13mo ago
solved by locking vitest to 0.34.2
Tom
Tom•13mo ago
Didn't help for me 😦
Lucianod
Lucianod•13mo ago
I have this too on all 0.34 versions (and 1.0 beta) I've tried all the vitest config options suggested here and here
GitHub
vitest/examples/solid/vite.config.mjs at main · vitest-dev/vitest
Next generation testing framework powered by Vite. - vitest-dev/vitest
GitHub
GitHub - solidjs/solid-testing-library: Simple and complete Solid t...
Simple and complete Solid testing utilities that encourage good testing practices. - GitHub - solidjs/solid-testing-library: Simple and complete Solid testing utilities that encourage good testing ...
phungleson
phunglesonOP•12mo ago
Just a note, I managed to upgrade to vitest 1.0.x by the 1st solution in https://github.com/solidjs/solid-testing-library?tab=readme-ov-file#known-issues
raipe
raipe•12mo ago
Hi! Have you found a solution yet? With Vitest 1.0.4 the problem still exists.
phungleson
phunglesonOP•12mo ago
I think it might be some other things to do with the package manager, It works when I use pnpm but doesn't when I switch to bun
Tom
Tom•12mo ago
No solution here, but it doesn’t seem to be actually causing any problem. I’d just rather have the peace of mind of not seeing that message. For now I’m just ignoring it.
Lucianod
Lucianod•11mo ago
Does anybody have a config that removes the warning on this super minimal reproduction? https://stackblitz.com/edit/vitest-dev-vitest-xs9lkq?file=src%2Fbasic.tsx
Want results from more Discord servers?
Add your server