-
Notifications
You must be signed in to change notification settings - Fork 385
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
Not working with nextjs 13 and react 18 #231
Comments
+1 I was also facing a similar issue |
Here is a PR I'm working on to support React 18 #232. |
Hi I just spinned up a fresh nextjs project but I am getting another error than the mentioned above. I am using the latest nextjs (13.4.1) and react (18.2.0) to try it since the PR mentioned by @joebutler2 which now has been merged into react-pdf-highlighter 6.1.0. All usages of the library in my code goes through an internal "proxy import" I have made in a file named /app/@react-pdf-highligter.ts which looks like this...
So I have modified all example code supplied in this repo (i.e. in App.tsx, Sidebar.tsx etc) to use ...
This does however give me the following error:
Anyone have any clues on how to proceed? |
Seems to have been a temporary error, that later disappeared. Instead I got the error from pdfjs dist about the missing
...then I could use it from my /app/page.tsx and render it like any other component...
...and then it was working fine. |
It seems because react 18 not supporting reactElement, can anyone help me for a solution?
The text was updated successfully, but these errors were encountered: