-
-
Notifications
You must be signed in to change notification settings - Fork 878
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 export broken for typescript moduleResolution node16 #2381
Comments
Hi there, thanks for raising this. Do you think this can be replicated in https://runkit.com/ ? Or would it need to be in a project. I am wondering though, given Node 16 had it's EOL brought forward by 7 months due to potential vulnerabilities, should we actually by dropping support for node 16? |
I haven't used runkit before but I'll take a look. The
As of now, |
It looks like there's no way to fiddle with builds in runkit, so I create a minimal reproduction here: https://github.com/apottere/ajv-typescript-node16 |
I see, I will take a look, thanks. |
any updates on this? |
This should be fixed by #2365. Can you try |
Looks good in https://arethetypeswrong.github.io/?p=%40benasher44%2Fajv%408.12.1 and seems to resolve the issue in my reproduction 👍 |
Interesting tool @apottere, it does indeed look all green. This is compared with what we currently have I'll just check it out a bit more, but looking good 👍 |
When can we expect the fix to be in? Thanks |
Also seeing this same issue in my code.
can be minimally rewritten as
to get it to compile (though I haven't tested if it actually works that way). Right now I'm having to manually copy a significant amount of code from one of our internal libraries into another project because the node16 module resolution features are broken by this issue |
Can you try the new version |
What version of Ajv are you using? Does the issue happen if you use the latest version?
8.12.0
Your code
What results did you expect?
No TS error is thrown.
Actual result:
I saw #2204, but it doesn't look like it was resolved in that issue. This is an issue with how ajv exports its types: https://arethetypeswrong.github.io/?p=ajv%408.12.0
I can provide a reproduction in a sample project but it should be fairly easy to reproduce.
The text was updated successfully, but these errors were encountered: