-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 build errors: TS2323 and TS2309 #2559
Comments
Update: I realized that having I removed the caret and changed back to 3.1.6: FYI the TypeScript issues begin with |
I had the same issue with version ^3.1.9. Downgraded to 3.1.6 without the caret with no issues. |
@diegomura This is marked as closed but I am still seeing the same exact Typescript errors if I upgrade to the latest version 3.3.5 |
@RaminRabani - Please see #2624 that is your issue |
Adding "skipLibCheck": true in tsconfig.json worked for me. |
Describe the bug
In my TypeScript project I upgraded from
"@react-pdf/renderer": "^3.1.6",
to"@react-pdf/renderer": "^3.3.3",
and now my build fails with a ton of the following errorsThere are a lot more errors like these.
I went to that file
node_modules/@react-pdf/renderer/index.d.ts
and the same errors are present. I tried downgrading back to version3.1.6
but these errors are still present.To Reproduce
"@react-pdf/renderer": "^3.3.3"
in a TypeScript projectnode_modules/@react-pdf/renderer/index.d.ts
Expected behavior
The type errors above not to exist
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: