-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support --moduleResolution node16 in typescript #38
Comments
can you create an example repository? |
ivandotv
added a commit
that referenced
this issue
Feb 21, 2024
closes Support --moduleResolution node16 in typescript #38 https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseESM.md
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm really liking this library! Thank you for your work.
I use moduleResolution of node16 in my project, and can't import it without errors.
Then I edit
package.json
innode_modules
... "umd:main": "./dist/prod/index.umd.js", "exports": { "require": "./dist/prod/index.cjs", "default": "./dist/prod/index.modern.js", + "types": "./src/index.ts" }, "types": "./dist/types/index.d.ts", ...
But the source files is containing imports without .js extension, so there's other error
And last thing I tried is providing url to .d.ts file in
exports
:But it also didn't work.
Without extensions it just doesn't reexport types in
index.d.ts
I think the best solution for this problem is providing extensions for import paths and providing type's path to index.d.ts file in
exports
. What do you think?The text was updated successfully, but these errors were encountered: