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
tsc compiler complains on import:
Code
import jsSHA from "jssha"; Could not find a declaration file for module 'jssha'. 'c:/Users/sydfg/projects/xxx/node_modules/jssha/dist/sha.mjs' implicitly has an 'any' type. There are types at 'c:/Users/sydfg/projects/xxx/node_modules/jssha/dist/sha.d.ts', but this result could not be resolved when respecting package.json "exports". The 'jssha' library may need to update its package.json or typings.ts(7016)
The text was updated successfully, but these errors were encountered:
adding "types" to packages.json like this fixes the issue for me.
"exports": { ".": { "types": "./dist/sha.d.ts", "import": "./dist/sha.mjs", "require": "./dist/sha.js" }, ...
Sorry, something went wrong.
40d2eb7
The amount of churn in the Javascript/Typescript ecosystem is staggering :(
I just added extra exports for all the types. I'll push v3.3.1 as it appears this is a widespread issue.
No branches or pull requests
tsc compiler complains on import:
Code
The text was updated successfully, but these errors were encountered: