-
-
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
Vitest 0.26.0 crashes with 'TypeError: Writable is not a constructor' #2533
Comments
I'm getting a very similar error with an import of import { EventEmitter } from 'node:events';
let emitter: EventEmitter;
beforeEach(() => {
emitter = new EventEmitter();
}); This worked perfectly fine with
If I use a
|
I wonder if this is related to #2512, which changed some handling around named imports... I wouldn't expect that to have affected imports from |
This is imported with |
What are you indicating is imported this way?
No; the native behavior does not match what I'm seeing in Vitest. If I use the Repl to import
|
Describe the bug
After upgrading 0.25.8 -> 0.26.0 Vitest fails a simple unit test run with:
Resolution: Reverted to 0.25.8
Reproduction
don't think a repro is needed, but can add if required
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: