Closed anis8 closed 1 year ago
Thank you for finding the root cause (inline styles in SVG). We have the build error, but I couldn't figure out where the issue came from.
The solution I found is to run the SVGs in this site: https://shrinkme.app/ By minimizing SVG, it replaces inline styles with attributes, and it allowed me to do all my SVGs at once.
This might be related to https://github.com/parcel-bundler/parcel/issues/7389. Unsure.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
🐛 bug report
SVG inline style cause error
🎛 Configuration (.babelrc, package.json, cli command)
package.json
.postcssrc
SVG file content
🤔 Expected Behavior
When I run parcel build index.html it causes an error, but works fine with parcel index.html
When i remove inline style: style="enable-background:new 0 0 975.036 975.036;" , it work
I tried adding a .htmlnanorc including minifySvg: false, but it didn't work.
😯 Current Behavior
Here is the error:
🌍 Your Environment