canvas icon indicating copy to clipboard operation
canvas copied to clipboard

FillType usage problem: Ambient const enums are not allowed when the '--isolatedModules' flag is provided

Open JohnCido opened this issue 3 years ago • 0 comments

I was trying to use this library in my NextJS app. And I have this complex SVG path that renders correctly only with this method in README.

The problem is when I try to use the setFillType method on Path2D, TS complains Ambient const enums are not allowed when the '--isolatedModules' flag is provided ts(2748). And I have to use 1 instead of FillType.EvenOdd to solve it.

Is there a possible fix to this?

JohnCido avatar Jul 07 '22 08:07 JohnCido