You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been upgrading our dependencies to the most recent versions lately and I've started receiving the following error in our NX Monorepo related to @vitest/web-worker that is breaking all of our unit tests:
Error: Failed to load url /Users/kether/frontend/node_modules/@vitest/web-worker/dist/index.js (resolved id: /Users/kether/frontend/node_modules/@vitest/web-worker/dist/index.js). Does the file exist?
What's particularly weird is that the file is there as expected:
The unit tests run fine up to and including 2.1.2. But as soon as I upgrade to 2.1.3 or above, I start getting the error which breaks our test suites. If I leave vitest@2.1.2, I can continue to upgrade @vitest/web-worker up to 2.2.0-beta.1 with the unit tests continuing to run as expected.
Hello @K3TH3R. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
I've been upgrading our dependencies to the most recent versions lately and I've started receiving the following error in our NX Monorepo related to
@vitest/web-worker
that is breaking all of our unit tests:Error: Failed to load url /Users/kether/frontend/node_modules/@vitest/web-worker/dist/index.js (resolved id: /Users/kether/frontend/node_modules/@vitest/web-worker/dist/index.js). Does the file exist?
What's particularly weird is that the file is there as expected:
The unit tests run fine up to and including 2.1.2. But as soon as I upgrade to 2.1.3 or above, I start getting the error which breaks our test suites. If I leave
vitest@2.1.2
, I can continue to upgrade@vitest/web-worker
up to2.2.0-beta.1
with the unit tests continuing to run as expected.Config:
Reproduction
git clone git@github.com:K3TH3R/ts-issue-starter-template.git vitest-path-issue
cd vitest-path-issue && git checkout vitest-2.1.2 && yarn install
yarn app1:test
-> everything runs as expectedgit checkout vitest-2.1.3 && rm -rf node_modules && yarn install
yarn app1:test
-> fails with the @vitest/web-worker errorThe only thing that has changed between these two branches is the Vitest dependency versions.
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: