Getting An Error When Compiling Scripts using wp-scripts #36926
Labels
[Package] Scripts
/packages/scripts
[Status] Needs More Info
Follow-up required in order to be actionable.
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: