React + Next.js: Unhandled Runtime Error with Annotorious (ReactCurrentDispatcher) #501
Unanswered
baydisng13
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I have a fix. this is not an annotorious issue. this is a NextJS issue. At first I thought it was just a normal SSR versus non SSR thing, so I tried both:
and simply
That didn't work. Google showed this: https://stackoverflow.com/questions/66194269/typeerror-cannot-read-propertyreactcurrentdispatcherof-undefined and so I downgraded Next.js from version 15 to 14:
and eslint to 8 from 9
Those two updates combined resolved the issue. |
Beta Was this translation helpful? Give feedback.
1 reply
-
A dependency update fixes this, I have provided a PR here: #509 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm trying to integrate the
@annotorious/react
library into my Next.js project, but I’m running into a runtime error:Here’s my setup:
15.1.2
^19.0.0
^3.0.20
My Code
Here’s the code that produces the error:
Questions:
@annotorious/react
compatibility with Next.js?Any help is appreciated! 🙏
Thanks in advance,
Beta Was this translation helpful? Give feedback.
All reactions