-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
WP 6.6 RC1: Custom blocks stopped working #63009
Comments
Still happening with RC2 |
@leoloso It's not related to anything in the gutenberg codebase, as with the gutenberg plugin active on 6.5, your plugin works too. I did a git bisect on WordPress core code and narrowed it down to this core commit - WordPress/wordpress-develop@f525e66. It seems like the removal of some polyfills (that your plugin must depend on) has caused the issue, probably with the generators given where the error happens. You could probably look to include the polyfills in your own compiled code to solve the issue, though I'm not personally aware of what's required. If you want to discuss it, here's the trac ticket (not sure if you're aware, but trac is the bug ticketing system for WordPress core, you'll need a wordpress.org user account to comment) - https://core.trac.wordpress.org/ticket/60962. I'll also drop a comment on the trac ticket to mention this issue. |
@leoloso Reading through that trac ticket, the comment here might be relevant for you. |
Let's continue discussion at GatoGraphQL/GatoGraphQL#2710 otherwise |
Hi @talldan @swissspidy I appreciate your input and help. Thanks! I've redone all the data stores in my plugin: I've removed the generators (so no need for the polyfill), using the source code from here: The JS error doesn't happen anymore, hurray! However, there is another problem. I'll post it on a separate issue. |
Description
In my plugin, I have a CPT that loads custom blocks. After upgrading to v6.6 RC1, all the custom blocks stopped working:
The compiled blocks are targeting WordPress 5.4, they work all the way down there. If possible, I'd expect them to still work on WP 6.6.
Error in the JS console:
I did
npm start
to get a friendlier error msg:That first error on
resolvers.js:60
points to this line in the code:The block uses these deps in
package.json
:Switching to
@wordpress/scripts
version27.9
also produces the same error.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: