-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Default imports don't work with module resolution node16 #58851
Comments
This package is incorrectly typed: https://arethetypeswrong.github.io/?p=pino%409.2.0 |
@jakebailey Can you elaborate a bit more?! Isn't |
We have the same issue for But the interesting thing is, according to this, the Playground:https://stackblitz.com/edit/stackblitz-starters-bakzhy Node.js: Run using |
|
Found the cause of the problem. closing. |
๐ Search Terms
"Default imports don't work with module resolution node16", "node16", "default imports"
๐ Version & Regression Information
โฏ Playground Link
https://stackblitz.com/edit/stackblitz-starters-bakzhy
Node.js: Run using
node src/index.js
Typescript: run using
npx tsc
and see the error!๐ป Code
๐ Actual behavior
๐ Expected behavior
It works in Node (tested with v18 and v20), why does typescript show the error?!
Just run the code above in NodeJS, we have no double
default
issue and everything works as expected.Additional information about the issue
This is related to #53349 and #50058#issuecomment-1404411380.
The text was updated successfully, but these errors were encountered: