Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import types after update #5770

Closed
xec opened this issue Oct 9, 2023 · 1 comment
Closed

Cannot import types after update #5770

xec opened this issue Oct 9, 2023 · 1 comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@xec
Copy link

xec commented Oct 9, 2023

After updating to latest (5.7.7) I get an error when attempting a type (the Select class):

import type SelectClass from 'react-select/dist/declarations/src/Select'
Cannot find module 'react-select/dist/declarations/src/Select' or its corresponding type declarations.ts(2307)

The culprit seems to be the exports section in package.json which only allows very specific imports.

This was introduced in #5559

I've suggested a fix in #5769 by adding an export rule for type definitions, but I'm open to other solutions/suggestions if any :)

@xec xec added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Oct 9, 2023
@xec
Copy link
Author

xec commented Oct 9, 2023

Closing since I found a duplicate of this, sorry about the noise!

#5743

@xec xec closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant