Skip to content

[BUG] Typescript types are not detected in nodeNext resolution environment #187

@Inviz

Description

@Inviz

Description

When using nodeNext module resolution in typescript, react-chakra-select types are not detected. Because when "exports" is present, "types" at root level supposed to be ignored

Solution is to add

"types": "dist/types/index.d.ts"

to package.json "exports" object after "default"

chakra-react-select Version

4.2.2

Link to Reproduction

No response

TypeScript?

  • Yes I use TypeScript

Steps to reproduce

  1. Create tsconfig with "moduleResolution": "NodeNext",
  2. Include "chaka-react-select"
  3. Try to typecheck

Operating System

  • macOS
  • Windows
  • Linux
  • iOS/iPadOS
  • Android

Additional Information

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions