Skip to content
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

Error WP Core 6.4: Lodash js dependency error. #26

Closed
rahulsprajapati opened this issue Nov 15, 2023 · 1 comment · Fixed by #27
Closed

Error WP Core 6.4: Lodash js dependency error. #26

rahulsprajapati opened this issue Nov 15, 2023 · 1 comment · Fixed by #27

Comments

@rahulsprajapati
Copy link
Contributor

rahulsprajapati commented Nov 15, 2023

Getting error with publication checklist on WP Core 6.4, when publishing post with checklist

image
Dt<@https://local-wp.test/wp-content/plugins/publication-checklist/build/index.js?ver=6.4.1:12:21485
Ze/</</n<@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:3088
ze/</l/l<@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:1958
__unstableMarkListeningStores@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:2:22508
Oe/a</<@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:2:22765
l@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:1922
ze/<@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:2426
Je@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:2637
Qe@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:2953
Ze/</<@https://local-wp.test/wp-includes/js/dist/data.min.js?ver=dc5f255634f3da29c8d5:9:3078
wt@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:47637
js@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:120584
wl@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88661
bl@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88589
yl@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88450
il@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85274
fl@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85661
Nn@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32474
n/ul/<@https://local-wp.test/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:83226

Looks like this error is because of Lodash lib removed from WP 6.4,

ref: WordPress/gutenberg#52571
https://make.wordpress.org/core/2023/10/17/miscellaneous-editor-changes-in-wordpress-6-4/#comment-45787

But this is not completely removed it is still registered, but it is no longer enqueued by default. ref: https://github.com/WordPress/wordpress-develop/blob/6.4/src/wp-includes/script-loader.php#L113

This is being used at:

But not added as dependency when registered build script of publication-checklist.

wp_enqueue_script(
SCRIPT_ID,
plugins_url( 'build/index.js', __DIR__ ),
[
'wp-block-editor',
'wp-edit-post',
'wp-plugins',
]
);

@svandragt
Copy link

Thanks just encountered this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants