Skip to content

Typescript build error #103

@faljse

Description

@faljse
  • jsSHA version: 3.3.0
  • JavaScript engine and version: node18/chrome

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions