-
Notifications
You must be signed in to change notification settings - Fork 7
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
TypeScript 5.x isn’t picking up types correctly #10
Comments
I guess I don't quite understand why Maybe you could try running typescript with the |
I noticed this package is still on TypeScript 4.6. 4.7 introduced a breaking change in how |
What are your I'm guessing this has to do with the If All that being said, I ran into this same error, and I have
But I think this should simply be resolved in Docs on this: https://www.typescriptlang.org/docs/handbook/esm-node.html |
It’s actually …or as an alternative, you can just remove the Either approach will work, but the behavior is very easy to recreate—just update TypeScript in this project >= 4.7, and consume in a project >= 4.7. Perhaps ESM is also the triggering factor for that behavior, ESM as the official module format of JavaScript is now table-stakes for packages to support. |
Bug
Getting the following error with
[email protected]
and TypeScript 5:Solution
I’ve opened #11 that should resolve the issue. But see the question there on what
types/test.ts
is doing. I’m not sure how that’s affected.The text was updated successfully, but these errors were encountered: