Skip to content

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

Open
@kilterskjalg

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" 
  ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions