HookState- Module '"@hookstate/core"' has no exported member 'useState'

192 views Asked by At

I have 1 problem, normally it works fine, but today when I build, this error appears Module '"@hookstate/core"' has no exported member 'useState'. I use NextJS enter image description here

I hope to get help. Thank you

1

There are 1 answers

0
Andrew On

You probably upgraded it to version 4. Version 4.0.0 has useHookstate instead, because useState collided with name in React and did not work in devtools.