Invalid hook call error in NextJs Web3Auth Modal SDK

Screenshot at Jan 12 12-02-27

Giving Invalid hook error, If I disabled the useEffect then this error goes.

How to fix?

@tahir Welcome Aboard!

Please refer to this thread where the issue has been addressed:

I can not update my node_modules it can create many conflicts in current application.
It is big project.

Is there any way to fix it?
May be older version of Web3Auth dependencies?