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

TypeScript doesn't recognize the types and fail v7 #844

Closed
AbdUlHamedMaree opened this issue May 10, 2024 · 1 comment
Closed

TypeScript doesn't recognize the types and fail v7 #844

AbdUlHamedMaree opened this issue May 10, 2024 · 1 comment
Labels

Comments

@AbdUlHamedMaree
Copy link

Screenshot

image
image

Description

after upgrading to version 7, TypeScript compiler and all related tools to it seems to not be able to read the declaration files from the bundle anymore, I found the files in my node_modules but I think that TSC isn't going to read the exports field with that nested deep object to get the types,

My expo application is failing and I can be sure that other tools relaying on TSC will fail as well.

Reproduction Steps/Repo Link

just install v7 of this lib in a repo that uses TSC.

@AbdUlHamedMaree AbdUlHamedMaree changed the title TypeScript doesn't recognize the types and fail TypeScript doesn't recognize the types and fail v7 May 10, 2024
@jasonkuhrt
Copy link
Owner

You need to setup TS to read from package.exports. Duplicate of #841 and others before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants