-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Custom block broken since 8.4.0 #23627
Comments
If you can join WordPress slack, send me a message and maybe I can help debug it. My username is |
Thanks @oxyc, I believe I found the issue. Starting from version 8.4.0, for some reason that I have not been able to track down yet, simply registering the script is not enough anymore and ENQUEUING the block editor assets becomes necessary. I am not sure why until version 8.3.0 and in WordPress without the Gutenberg plugin installed the mere registration of the assets is enough to activate the block, while in the latest version 8.4.0 this doesn't work anymore. Unless I missed something, this change has not been documented anywhere. |
Ah, it might have to do with #22754 |
Thanks for pointing that out. The problem was certainly connected to the PR you mentioned and caused by the actions I used to register the block assets. With this new approach, though, apparently those actions are too late to register the assets. So, moving the registration of the assets to the Thanks for your help! |
Since updating to Gutenberg 8.4.0, my custom block doesn't work anymore when the Gutenberg plugin is active but still works in the builtin WordPress block editor.
Everything works fine in Gutenberg 8.3.0.
As soon as I update to version 8.4.0, the block doesn't show up anymore in the list of the available blocks when I try to add a new one and all the blocks already on the page fail to load with the following error:
No errors are triggered in the PHP debug log or the Javascript browser console.
Any help troubleshooting this issue is greatly appreciated. Honestly, I wouldn't know where to start.
I have already checked the changelog and haven't found any info about a possible break of blocks perfectly working in the previous version.
Please advise.
The text was updated successfully, but these errors were encountered: