-
Notifications
You must be signed in to change notification settings - Fork 13
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
missing dependencies on wordpress 6.4 #168
Comments
Hi @signsi, It sounds like there aren't any other plugins active on your site, right? I'm not seeing this error, and the e2e tests are passing with 6.4. |
PS. Thanks for your very detailed report. |
Hey @kienstra I've also informed wpengine. We have version 1.5.3 from there. What is the connection there? The error exists with all versions. I also have the error with the default theme and without other plugins. Regarding lodash, the clean solution is probably that the dependency is explictly specified. Lodash is still available in the core, but is no longer automatically enqueued. I've just downloaded the version from the repo here. So far updates of the wordpress / react dependencies have not helped so far. |
Quick update: The problem with lodash seems to be due to a combination of genesis custom blocks and our theme (since 6.4). However, the problem with the debounce always exists. |
Ah, so that's Genesis Custom Blocks Pro. This repo is for the free version deployed to wp.org. Genesis Custom Blocks Pro also runs GCB free, though. |
Hm, GCB enqueues lodash, I'm not sure what more we can do with that. |
That issue was not related to the plugin. |
Ah, thanks. |
I'm looking at rn.debounce, it's hard to see where that's coming from. |
I was also able to reproduce the error on a bare WP installation on a standard web server. So I'm pretty sure it's due to the combination of WP 6.4 and Genesis Custom Blocks.
|
OK, thanks. I don't see that error. Would you be able to run this plugin from source to see if that gives a better error message?
|
I totally agree. Tried it some hours ago myself. |
OK, thanks. I'll do that. |
Sorry, still not seeing the error. I'll think about this today. |
I tried the same thing today. But I used the build instead of the dev server.
|
Here you will find the source code. It is from the package @wordpress/server-side-render in version 1.19.5. |
Wow, great find. So debounce is |
Yes, that's how it looks at the moment. I'll take another deep dive into the matter tomorrow. |
Thanks, talk to you tomorrow! |
The e2e tests are showing the same error about |
Hey Ryan |
We've just discussed the issue internally. This warning could potentially be related as the refactoring to hooks also concerned these (or at least related) packages: |
To be more precise: the warning clearly comes from wp core. |
Work in progress: Testing @wordpress/server-side-render@4.3.8. Currently it looks much better. Doing some proper testing now. In Version 4.3.8 the refactoring to hooks is present. |
Hi guys, Downgrading Wordpress back to 3.6.x does resolve the issue temporarily. Thanks already to you for taking care of this! |
Hello @fabiankaimer |
Hi @signsi, |
Does this .zip fix it on your site? genesis-custom-blocks.1.5.2.zip It's from #170, which at least passes the e2e tests. |
Hi @kienstra I was also facing this issue, but replacing the plugin which this zip file removes the problem for me on WP 6.4.1 |
@vishu87, |
@kienstra same for me. ✅ |
@signsi, |
Thanks, for the PR @kienstra . Thanks, for the PR. So it was really missing JS dependencies, more precisely lodash? |
Yeah, it was missing lodash, you called it 😄 |
I might not release this fix to wp.org until next week, Thursday is getting a late for a release 😄 |
Sure, no worries. Thanks Ryan. For the pro-version it might take even more time, right? |
No, I'll release the Pro version the same day as the free version. |
Replacing the plugin with the one in the zip-file worked for me as well, problem solved. Thanks a lot @kienstra |
Thanks, @bringsonline! Great to hear. |
Hi @signsi, In |
Thanks for the quick fix. Works again for me as well! |
Thanks, @fabiankaimer! Good to hear! |
Great, thanks a lot. |
Bug summary
On wordpress 6.4 our custom blocks based on genesis are no longer displayed in the editor.
TypeError: undefined is not an object (evaluating 'rn.debounce')
.The first issues can be quickfixed by explicitly loading lodash for example a script which is loaded in the editor. We are currently still looking for quickfixes for the second issue.
Steps to reproduce
Expected behavior
The Plugin should properly work with all stable version of wordpress.
Actual behavior
Multiple js errors. On the frontend side it still seems to work.
JS Console
Additional information
Suspected cause (optional)
It looks like a missing functions (debounce). Possibly it is due to a version conflict of react dom.
Versions
The text was updated successfully, but these errors were encountered: