Skip to content

Typescript error: The '@codedread/bitjs' library may need to update its package.json or typings #49

Description

@kilterskjalg

Hi.

I get this error:
Typescript error: There are types at 'node_modules/@codedread/bitjs/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@codedread/bitjs' library may need to update its package.json or typings

The error goes away if I find package.json in node_modules/@coderead and replace:

"exports": "./index.js"

with

"exports": [
    "./index.js",
    "./types/index.d.ts" 
  ],

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions