-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Invariant Violation: Minified React error #130 #4851
Comments
I'm running into the same issue when I try to pull RichText or Plain Text from wp.blocks. If I console log wp.blocks.RichText it is undefined, while console logging wp.blocks.Editable returns a value. I don't believe RichText or PlainText are being imported into wp.blocks. ` registerBlockType('guty/hero-block',
); |
Are you using the master branch? the docs reflects the code in the master branch and |
I have having the same issue. Here is my snippet:
Error message:
When I remove My Gutenberg version is 3.6.2. |
In my case above I was on the wrong branch. In your case I think you're trying to peel off RichText from wp.blocks. That's the old way to get editor components. Try this:
|
@JimSchofield yes, that was the mistake. |
Please disregard my previous message. It has got resolved! |
I've tested the code in the docs :
but I get this error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
The text was updated successfully, but these errors were encountered: