Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Hook Call Warning #17

Open
MinhHoang2000 opened this issue Dec 14, 2021 · 6 comments
Open

Invalid Hook Call Warning #17

MinhHoang2000 opened this issue Dec 14, 2021 · 6 comments

Comments

@MinhHoang2000
Copy link

When I use react-web-editor, application had a error "Invalid hook call. Hooks can only be called inside of the body of a function component"

@CHEWCHEWW
Copy link
Owner

CHEWCHEWW commented Dec 15, 2021

Oh! Can you tell me about the specific Situation that occurred this warning?
Thank you for letting me know.

@prasang-readwhere
Copy link

Hi CHEWCHEWW,

The same errror "Invalid hook call. Hooks can only be called inside of the body of a function component.". Occurred with me as well.

My Steps were as simple as it can be :

  1. Installed the library with npm.
  2. Imported the TextEditorBlock in my component
  3. Boom ! the app was down and displayed errors

index.js:1 The above error occurred in the component:
in TextEditorBlock (at StoryBuilder.js:11)
in StoryBuilder (created by Context.Consumer)
in Route (at Admin.js:130)
in Switch (at Admin.js:180)
in div (at Admin.js:175)
in div (at Admin.js:164)

@prasang-readwhere
Copy link

Please fix this, this is great library and might just not be popular because we cannot get past this error

@aguiar-tiago
Copy link

+1

@timrijkse
Copy link

This is because of mismatching versions in React. I updated the dependencies in this PR #20

@joyceawt
Copy link

hi could this PR be merged please? I'm trying to use this but unable to do so because of the hook warning :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants