-
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
Block validation failed error in console, but block working in editor... #13021
Comments
just to clarify, of course the html of whole block was changed except the main parent div where were changed just classes. |
after further research, I tried the simple example in documentation for Deprecated Blocks
The result is same, block doesn't crash in editor after change, but I can still see validation error in console:
Thanks for any recommendation on how to get rid of the validation errors from console. |
I think this is the default behaviour. At least is what happens with the simple example you posted. Once the post is updated the block updates and on the next page reload the error doesn't appear. But it is confusing at first. |
Hi @ihdk - this is currently expected, the validation failure is logged regardless of whether a deprecation can be used as a fallback, but it should only happen if the post contains an old version of a block. In the example, the post content would have contained a I think I recall seeing a discussion before about the warnings before, but can't find it now. It is potentially a bit confusing that this is logged as an error when a deprecation is successful. A potential improvement would be to log instead as a warning or info when a block falls back to a deprecation. |
Hello, thanks a lot for clarification. Really good to know it's expected behavior for now. Thanks again, Ivan. |
Hello, I'd like to ask if it's ok that block validation failed in browser console, where I can still see error validation message like:
Deprecated block is defined and this error message doesn't break the editor so I can continue to edit blok with new options.
I am just curious if this error message in console would be there, or I am still doing something wrong even I can continue to use the block in editor. Block in editor doesn't crash and I do not need to convert block like before, while deprecated block was not defined.
Error message in console disappear, of course, immediately I change something in editor and update post.
Thanks for any info, Ivan.
The text was updated successfully, but these errors were encountered: