-
Notifications
You must be signed in to change notification settings - Fork 29
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 types should work with moduleResolution node #116
Comments
This error could be because you haven't set the moduleResolution properly. Did you use the ".mts" suffix on your typescript source file, or did you run the "npm pkg set type=module" command? If not, please try to do that first. |
@ccxvii I do have I see now your docs say But in the meantime, I'll see if I can get that resolution working in my project! |
@ccxvii i confirmed that upgrading my moduleResolution fixed the issue, so feel free to close if you'd like! It's worth noting this was a decent effort, because many older libraries only work with moduleResolution=node. So it may still be nice for you to support the older moduleResolution |
I installed
mupdf
in a TS project and ran into this error:Runtime code works fine, but TypeScript complains.
Adding the following to mupdf/package.json fixes the issue:
The text was updated successfully, but these errors were encountered: