admin管理员组

文章数量:1426058

I have been working on a project and I keep getting this error at runtime:

Unhandled Runtime Error

TypeError: Cannot destructure property 'ReactCurrentDispatcher' of '{imported module [project]/nodemodules/next/dist/compiled/react/index.js [app-client] (ecmascript)}.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' as it is undefined.

I am using nextjs 15 and react 19. I tried downgrade react as well as remove and reinstall node_modules, but I keep getting the same error.

I have been working on a project and I keep getting this error at runtime:

Unhandled Runtime Error

TypeError: Cannot destructure property 'ReactCurrentDispatcher' of '{imported module [project]/nodemodules/next/dist/compiled/react/index.js [app-client] (ecmascript)}.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' as it is undefined.

I am using nextjs 15 and react 19. I tried downgrade react as well as remove and reinstall node_modules, but I keep getting the same error.

Share Improve this question edited Apr 6 at 6:07 marc_s 757k184 gold badges1.4k silver badges1.5k bronze badges asked Dec 15, 2024 at 20:11 Raza AliRaza Ali 115 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Provide fallback for an undefined object. Also, using __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is not safe. Hopefully this solved your problem.

本文标签: reactjsFacing issue in using recoilstate libraryStack Overflow