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. |
1 reply
|
A dependency update fixes this, I have provided a PR here: #509 |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm trying to integrate the
@annotorious/reactlibrary 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.20My Code
Here’s the code that produces the error:
Questions:
@annotorious/reactcompatibility with Next.js?Any help is appreciated! 🙏
Thanks in advance,
All reactions