-
Notifications
You must be signed in to change notification settings - Fork 82
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 not resolving when using tsconfig with moduleResolution: "Bundler"
#191
Comments
Perhaps somewhat related, types also cannot be resolved when using
|
Needs {
"exports": {
".": {
"types": "./dist/tinykeys.d.ts",
"import": "./dist/tinykeys.module.js",
"require": "./dist/tinykeys.js"
}
}
} OK.. Saw the 2nd PR which got it right.. Currently using a fork just for this. |
FYI, you can patch this locally with Note: changes to Here's our diff --git a/node_modules/tinykeys/package.json b/node_modules/tinykeys/package.json
index bbda4b2..38fc5a5 100644
--- a/node_modules/tinykeys/package.json
+++ b/node_modules/tinykeys/package.json
@@ -16,7 +16,8 @@
"exports": {
".": {
"import": "./dist/tinykeys.module.js",
- "require": "./dist/tinykeys.js"
+ "require": "./dist/tinykeys.js",
+ "types": "./dist/tinykeys.d.ts"
}
},
"keywords": [ And a sample {
"scripts": {
"postinstall": "patch-package"
},
"dependencies": {
"patch-package": "^8.0.0",
"tinykeys": "^3.0.0"
}
} |
Here's what I found while researching this issue:
microsoft/TypeScript#52363
https://arethetypeswrong.github.io/?p=tinykeys%402.1.0
https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/UntypedResolution.md
https://stackoverflow.com/questions/72457791/typescript-packages-that-ship-with-mjs-and-d-ts-but-without-d-mts-how-to-i
The text was updated successfully, but these errors were encountered: