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:
![Screen Shot 2022-11-15 at 14 54 10](https://user-images.githubusercontent.com/62492410/201861147-c9741c18-8a97-41fc-ae35-1993ab0f9032.png)
is it because Im using
React.lazy
for my component?Beta Was this translation helpful? Give feedback.
All reactions