parcel icon indicating copy to clipboard operation
parcel copied to clipboard

Error with SVG Optimizer

Open tracker1 opened this issue 3 years ago β€’ 0 comments

πŸ› bug report

I was trying to build a project using the octa-signin-widget. This references an SVG in their CSS that seems to be problematic for the SVG Optimizer. Doesn't happen on watch, only on build.

Image In Question

πŸŽ› Configuration (.babelrc, package.json, cli command)

No customization added...

πŸ€” Expected Behavior

Expect the project to build...

😯 Current Behavior

parcel build feature/index.html --dist-dir dist
🚨 Build failed.

@parcel/optimizer-svgo: SvgoParserError: <input>:13:72: Invalid character entity

  11 |  
  12 |  
> 13 | … id="Livello1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&nsg…
     |                                                       ^
  14 | …ule:evenodd;clip-rule:evenodd}.st1{fill-rule:evenodd;clip-rule:evenodd;fil…
  15 |  

πŸ’ Possible Solution

No idea... the image itself seems to be more complex than most SVG files I've seen

πŸ”¦ Context

Currently unable to build.. working on a proof of concept, and this is a serious hindrance.

πŸ’» Code Sample

import OktaSignIn from "@okta/okta-signin-widget";
import "@okta/okta-signin-widget/dist/css/okta-sign-in.min.css";

🌍 Your Environment

Software Version(s)
Parcel 2.7.0
Node 16.17.0
npm/Yarn npm 8.15.0
Operating System MacOS

tracker1 avatar Sep 13 '22 02:09 tracker1