-
Notifications
You must be signed in to change notification settings - Fork 143
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
bug: TypeScript types not working for package types module
#569
Comments
I have an ESM project using the gamedig types and it builds fine atm (node 20 / TS 5)
Here is the source for the package.json file the error refers to: Update: |
The fix is editing the imported modules package json to show:
After that it lets me build with @FlorianSW i submitted a PR to definetly typed, hopefully this gets added soon, then you should be good to go. DefinitelyTyped/DefinitelyTyped#69767 |
Updates are merged upstream, so this should be fixed now |
Describe the bug
Using the latest
gamedig
and@types/gamedig
packages in my project, I get the following TypeScript compile error:This is my package.json
And my tsconfig.json:
When switching to
commonjs
, typings work fine, however, this is not really an option for me here. Tbh, I don't have a direct clue on what is wrong here, is it a configuration error on my side? Or are the types not working with modules?The text was updated successfully, but these errors were encountered: