-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Memfs throwing an error after update to version 3 #7266
Comments
Same happens when using Mui with @emotion styles |
I had similar errors with some other package on Node v22.6 and after updating to v22.13 they disappeared |
I'm also experiencing this, with Vitest 3, but only with Vite 6. Downgrading Vite to 5 (but keeping Vitest at version 3) 'fixes' it, so I suspect it is because of something which changed in Vite 6 |
same issue. fixed by updating node to 22.13. It works fine on 3.0.0-beta.4. |
I can confirm updating node from 21 to 22 the error disappeared. However this feels a bit like slapping flex tape on a leaking water tank to me 🤔 |
As @sandhose mentioned the problem arises with Vitest version 3 and Vite version 6. For some reason downgrading to previous version make the issue disappear. It seems strange as the Forgot to mention that there is another issue with the example code as |
Describe the bug
Mocking filesystem with
memfs
as described here throws an error with version 3.This is what I got using the example code:
Reproduction
Vitest 3 with code from example
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: