Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems that an PR on DefinitelyTyped repository has already been opened to add type support for react-pdf v6 (which includes vite support). So to bypass the typescript error you have 2 options:
then the error will be gone and react-pdf on vite will still be working as expected: Hope it helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Im using React with Vite, but it seems it doesn't work with vite, I got this error:
is it because Im using
React.lazy
for my component?Beta Was this translation helpful? Give feedback.
All reactions