-
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
Getting An Error When Compiling Scripts using wp-scripts #36926
Comments
Which version of
Actually that might be an issue because it uses an older version v15 of The only question would be how it happened that you end up using webpack v5. |
So, I thought I had updated the version locally before opening this, but evidently I did not. After updating to the latest version, everything worked without a hitch. Thanks for your time, @gziolo and @skorasaurus. And THANK YOU for your contributions. |
@alexstandiford from a fellow Ohioan, thank you for your appreciation :) |
Description
When I try to use the wp-scripts library to run
wp-scripts start
, I get the following error message:I did a little digging, and found this issue on Webpack's repository that mentions
jsonpFunction
was replaced withchunkLoadingGlobal
. I was able to get the script to compile successfully by replacingjsonpFunction
withchunkLoadingGlobal
like so:Step-by-step reproduction instructions
@wordpress/scripts
. I used Underpin's boilerplate in my testing, but that is probably not required.wp-scripts start
in whatever way you need to-do that. In my case I had a commandnpm run start
set up to run this for me.Screenshots, screen recording, code snippet
No response
Environment info
Using WordPress 5.8, and the most-recent version of WP Scripts (whatever gets pulled as the latest from npm)
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: