Closed jrutila closed 3 months ago
Thanks for reporting the error. There are a couple of different ways we think you could encounter this issue. We were able to reproduce it by installing dependencies using both npm and pnpm (one after another, on the same project), resulting in a node_modules folder that contained multiple instances of some dependencies. Given you mentioned this used to work for your project, this might be the problem. If it is, deleting your node_modules folder and reinstalling your dependencies using pnpm should fix things.
You also mentioned you're in a monorepo. If the above wipe/reinstall of node_modules doesn't fix your problem, it's possible there are conflicting vitest versions you'll need to align in order to fix the issue.
Please let us know whether either of these potential solutions fixes the error.
Yes, I had a project inside the mono-repo that was referencing to vitest ^1.0.4
and others were for ^2.0.5
. After streamlining all projects to the same vitest version it started working. Thank you!
Issue description or question
Running with vitest@2.0.5 and pnpm mono-repo I got following error. Wallaby worked at some point!
I tried adding this
.npmrc
in the pnpm workspace root:Wallaby diagnostics report