Error parsing SVG with @wordpress/scripts #20088
Labels
Needs Dev
Ready for, and needs developer efforts
[Status] In Progress
Tracking issues with work in progress
[Tool] WP Scripts
/packages/scripts
Describe the bug
When running
wp-scripts build
with the following code gives an error.To reproduce
Steps to reproduce the behavior:
Expected behavior
The build process to complete successfully
Versions
@wordpress/scripts
version7.0.1
Related Gutenberg issue: #14628
Introduced in: #18243
Related slack discussion: https://wordpress.slack.com/archives/C5UNMSU4R/p1580939781306900
Reason for bug: Incompatibility between
@svgr/webpack:4.3.3
andurl-loader:3.0.0
which was fixed in@svgr/webpack:5.0.0
as documented in gregberge/svgr#367.The proposed solution is to update @svgr/webpack to version 5.0 or greater.
The text was updated successfully, but these errors were encountered: