Error: Invalid hook call. Hooks can only be called inside of the body of a function component. #14406
Answered
by
SergiiMost
SergiiMost
asked this question in
Help
-
Yesterday everything worked just fine. Today, without any code change i get this error. Probably the version of Next.js was updated. Is there an easy way to fix it? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
SergiiMost
Jun 21, 2020
Replies: 2 comments 1 reply
-
If the code was working before,You can try deleting the .next folder and try running the server again. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, i was able to fix the problem. Apparently, it was related to the WindowsPowerShell . Here is SO post that explains everything. I hope this helps someone else. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SergiiMost
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, i was able to fix the problem. Apparently, it was related to the WindowsPowerShell . Here is SO post that explains everything. I hope this helps someone else.