okta / okta-signin-widget

HTML/CSS/JS widget that provides out-of-the-box authentication UX for your organization's apps
Other
374 stars 320 forks source link

Trouble building with Parcel 2 #2783

Open tracker1 opened 1 year ago

tracker1 commented 1 year ago

Describe the bug

There's a referenced SVG file in the CSS that the Parcel optimizer seems to have an issue with..

Image in Question

Related bug reported to Parcel

What is expected to happen?

Would expect it to build.

What is the actual behavior?

Breaks during build.

Reproduction Steps

reference widget css with import statement, attempt to build with parcel.

SDK Versions

n/a

Execution Environment

n/a

Additional Information?

Mostly reporting, in case you could simplify the svg itself in the near term... it looks like it's mostly the reference variables for the xml namespaces that are being used, and unsure if they're all truly needed. Seem to be added by Adobe (Ilustrator?). May be able to open/resave from Inkscape or something to inline the directives themselves or remove if not strictly necessary.

I did report this upstream to parcel, and hopefully they can address in the optimizer itself, and will probably just copy/replace this as that image isn't even in needed for what I'm working on.

shuowu-okta commented 1 year ago

Internal Ref: OKTA-532780

mischnic commented 1 year ago

This is a Parcel bug, see https://github.com/parcel-bundler/parcel/issues/8469#issuecomment-1279132032.