Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error TypeError: (0 , _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect) is not a function [closed]

Tags:

redux

next.js

On configuring Redux with Next.js am getting this err following is my package.json versions "@reduxjs/toolkit": "^1.9.5", "next": "13.4.7", "react": "18.2.0", "react-dom": "18.2.0", "react-redux": "^8.1.1", "redux": "^4.2.1"

tried to start next.js server locally by npm run dev . But UI showing err error TypeError: (0 , _useIsomorphicLayoutEffect.useIsomorphicLayoutEffect) is not a function

like image 344
syed yaser mohasin Avatar asked Mar 24 '26 03:03

syed yaser mohasin


1 Answers

You are likely trying to use a component (Provider) or hook that can only be used in a client component in a server component.

You can read up on that in the Next.js docs

like image 121
phry Avatar answered Mar 26 '26 09:03

phry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!