vitest-dev / vscode

VS Code extension for Vitest
https://vitest.dev/vscode
MIT License
736 stars 83 forks source link

Vitest v0.0.0 is not supported. Vitest v1.4.0 or newer is required. #333

Closed ffMathy closed 4 months ago

ffMathy commented 4 months ago

Describe the bug

I get the following error: "Vitest v0.0.0 is not supported. Vitest v1.4.0 or newer is required."

Vitest 1.4.0 is installed, and it is a PNPM project.

Reproduction

I am still working on a repro, but I don't think we should release the new prerelease before this is done. It started happening on my work project, so I am sure it'll happen for others too.

Output

[INFO 11:11:18 AM] [v0.5.14] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[Error 11:11:19 AM] [API] Failed to start Vitest: No vitest config files found

Version

v0.5.14

Validations

ffMathy commented 4 months ago

Nevermind, I had specified a wrong packagePath. I was pointing to my own package.json, not Vitest's.

Perhaps the error message could be improved.