Skip to content

TypeScript types not resolved with moduleResolution: "NodeNext" #47

Description

@jlismore

When using TypeScript with moduleResolution: "NodeNext", the types are not found:

Cannot find module 'jsonriver' or its corresponding type declarations.

I think the issue is the exports field in package.json doesn't include a types condition. Could we add types to package json and publish a new version?

"exports": {
  ".": {
    "types": "./dist/index.d.ts",
    "import": "./dist/index.js"
  }
}

ts docs

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions