-
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
WP 6.6 RC1: plugin breaks after update #62923
Comments
I'm experiencing this as well. Something as simple as this causes this same error to occur:
This results in the following error: UPDATE - managed to fix this. We had |
Thanks for your help! I can confirm that the cause of the It comes from build/index.asset.php dependency by default. However, our custom blocks don't work. and we still get
The error comes from the file edit-post.js, from the line
|
FWIW, the As for the other issue at hand, it is indeed related to Specifically, you are using generator functions in your code base while still targeting abandoned browsers like IE 11 that do not support generators. To address this, you need to either manually load the Your Babel config in general contains polyfills for things that have been added to browsers a long time ago. Those polyfills have long been deprecated because of that. You can basically remove all of them. I recommend just using |
Thanks for your help, now most of our custom blocks work, aside of blocks that use But I guess that's a question for typesense devs, going to create an issue there. |
Looks like typesense/typesense-instantsearch-adapter#112 applies to you In short: This script was built targeting older browsers such as IE11, where generators were not supported. It thus requires the regenerator runtime to be available (which -import TypesenseInstantSearchAdapter from 'typesense-instantsearch-adapter';
+import TypesenseInstantSearchAdapter from 'typesense-instantsearch-adapter/src/TypesenseInstantsearchAdapter.js'; |
@elzadj Quick follow-up after looking into it again: I of course meant |
I ran into this issue on a plugin as well even though that plugin uses I couldn't find a path to resolution, so I had to update the plugin's |
Yeah if you target Internet Explorer (which is abandoned) then you would include the regenerator code for no reason and would need to manually add |
updated the https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin/v/6.3.0 thanks! |
The Pods Plugin is also affected by this problem and its minified code. |
@yonnic Their support is well and alive and they are working on this. See https://wordpress.org/support/topic/pods-not-working-with-wordpress-6-6-update/. |
@swissspidy Is there any update about this issue?
|
AFAIK it is supposed to be fixed in 6.7 |
Description
Plugin: https://wordpress.org/plugins/maxi-blocks/
GitHub: https://github.com/maxi-blocks/maxi-blocks
After updating to WP 6.6 RC 1 we're getting this in the editor:
Switching back to WP 6.5.5 immediately fixes it, we suspect that it's somehow connected to https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/ and maybe to our babel config and / or webpack.config.js
https://github.com/maxi-blocks/maxi-blocks/blob/master/.babelrc.js
https://github.com/maxi-blocks/maxi-blocks/blob/master/webpack.config.js
Any help with fixing it is appreciated.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
React 18.3.1
Node v20.11.1
PHP 8.2.20
No packages were updated, here are the versions:
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @floating-ui/[email protected]
├── @langchain/[email protected]
├── @loadable/[email protected]
├── @prettier/[email protected]
├── @uiw/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── @wordpress/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
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: