-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No known conditions for "./browser" specifier in "msw" package #2106
Comments
After a lot of banging my head on the wall. I found a silly solution/mistake for myself. Hope it helps someone out there.
|
@Ankur-Marwaha Thank you so much for posting your solution! I had the exact same thing going on and it was driving me nuts! |
@Ankur-Marwaha that's not a (good) solution. I'm also getting this error without |
@ulidtko , I agree But i feel there is no point in testing this as well. |
OK so in my case, the mistake was that this project was using The fix was to rewrite the mock fixture to |
@ulidtko Thank you so much! Your solution and advice help me a lot! |
None of the above solutions worked for me |
Prerequisites
Environment check
msw
versionBrowsers
Chromium (Chrome, Brave, etc.)
Reproduction repository
NA
Reproduction steps
Here are the setup files in my project
Current behavior
For dev-server or build, everything works fine. I am able to mock properly.
When i run
vitest run --coverage
It fails with the following error
Expected behavior
No error is expected.
The text was updated successfully, but these errors were encountered: