We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce:
package.json:
package.json
{ "type": "module", "dependencies": { "fetch-cookie": "^3.0.0", "typescript": "^5.3.3" } }
main.ts:
main.ts
import fetchCookie from 'fetch-cookie'; export default fetchCookie;
Run node_modules/.bin/tsc -m node16 --noEmit --strict main.ts
node_modules/.bin/tsc -m node16 --noEmit --strict main.ts
Output:
main.ts:1:25 - error TS7016: Could not find a declaration file for module 'fetch-cookie'. '/private/tmp/fetch-cookie-test/node_modules/fetch-cookie/esm/index.js' implicitly has an 'any' type. There are types at '/private/tmp/fetch-cookie-test/node_modules/fetch-cookie/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'fetch-cookie' library may need to update its package.json or typings. 1 import fetchCookie from 'fetch-cookie'; ~~~~~~~~~~~~~~ Found 1 error in main.ts:1
The text was updated successfully, but these errors were encountered:
628d058
Thanks for reporting! This should be fixed with 3.0.1, let me know :)
Sorry, something went wrong.
Thanks, works now!
No branches or pull requests
To reproduce:
package.json
:main.ts
:Run
node_modules/.bin/tsc -m node16 --noEmit --strict main.ts
Output:
The text was updated successfully, but these errors were encountered: