You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it seems this option combination gives this unexpected error:
RangeError: Maximum call stack size exceeded
at new NodePath (@svgr/cli/node_modules/h2x-traverse/lib/NodePath.js:30:14)
at Function.get (@svgr/cli/node_modules/h2x-traverse/lib/NodePath.js:20:12)
at TraversalContext.create (@svgr/cli/node_modules/h2x-traverse/lib/TraversalContext.js:48:31)
at Array.from.forEach (@svgr/cli/node_modules/h2x-traverse/lib/TraversalContext.js:34:29)
at Array.forEach (<anonymous>)
at TraversalContext.visitMultiple (@svgr/cli/node_modules/h2x-traverse/lib/TraversalContext.js:32:27)
at TraversalContext.visit (@svgr/cli/node_modules/h2x-traverse/lib/TraversalContext.js:23:55)
at NodePath.requeue (@svgr/cli/node_modules/h2x-traverse/lib/NodePath.js:91:18)
at NodePath.replace (@svgr/cli/node_modules/h2x-traverse/lib/NodePath.js:76:10)
at enter (@svgr/cli/node_modules/@svgr/core/lib/h2x/emSize.js:31:14)
This is using 2.1.1.
The text was updated successfully, but these errors were encountered:
Seems like --no-svgo --no-dimensions is what I want in my case for pre-minfied SVGs to prevent svgo from dropping the viewBox attribute. Still, the error might be worth checking out.
I'd like to create a icon with the
viewBox
attribute preserved and nowidth
orheight
properties on the root<svg>
(because I set dimensions via CSS):$ svgr --icon --no-dimensions pencil.svg
Sample input file:
Expected output:
But it seems this option combination gives this unexpected error:
This is using
2.1.1
.The text was updated successfully, but these errors were encountered: