-
Notifications
You must be signed in to change notification settings - Fork 70
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
Constructor error (TS2351) in TypeScript when using ESM since v5 #81
Comments
What is your current nodejs version? For me it worked providing just the TS definition file. From v4 to v5 the environment setup was changed to work on all major platforms. The
|
I tested with nodejs version
Nope:
By removing |
That's an interesting insight, thanks! I tested it again and again with nodejs from v16 to v23 and never had a problem. However, since your hint is very valuable, I updated the |
Yes now It works though if |
package.json
tsconfig.json
test.ts
Compilation error:
It worked fine in v4, and it works again if
"type": "module"
is added back tonode_modules/fraction.js/package.json
.The text was updated successfully, but these errors were encountered: