Attempted import error: 'experimental_useEffectEvent' is not exported from 'react' #63650
Replies: 3 comments 3 replies
-
|
Hi, This API is not even present in canary AFAIK. You have you use experimental as per docs: |
Beta Was this translation helpful? Give feedback.
-
|
I haven't been able to import and use the useEffectEvent from react@experimental in my NextJS app either despite following said instructions.. It'd really simplify a lot of code if I could. |
Beta Was this translation helpful? Give feedback.
-
Error TypeRuntime TypeError Error Message(0 , TURBOPACK__imported__module$5b$project$5d2f$node_modules$2f2e$pnpm$2f$next$40$15$2e$5$2e$6_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$$28$ecmascript$29$.useEffectEvent) is not a function Code Frame10 | const router = useRouter()
Next.js version: 15.5.6 (Turbopack) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I got this error when running
next buildon my project. I'm trying to use the experimental React hookuseEffectEvent. Anyone had success using this hook with Next.js ?Thanks in advance
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions