parcel
parcel copied to clipboard
Error with SVG Optimizer
π 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.
π 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 |