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
Unable to import commonjs file with default export #2258
Comments
Type definition of You can disable this behaviour with |
I guess we can disable it by default, if |
Ah yes this worked, thanks. |
This resulted in a regression in fastify/fastify-autoload#277 |
I had the same issue, but it seems to be fixed now (with v. 0.28.3). |
Yes, this is fixed. We tried enabling it by default for |
Describe the bug
This is the same as #2219, but I wasn't able to reopen.
The initial bug was resolved, but I ran into it again when importing a file from
node_modules
. I tried different things, but I'm not sure why it happens with this one file and not with other cases.I updated the reproduction example.
Reproduction
https://github.com/danez-labs/vitest-default-commonjs with latest commit
npm i
npm test
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: