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
I was also having issues with import { difference } from "polygon-clipping" and with import * as clipping from "polygon-clipping" (and then accessing clipping.difference). import polygonClipping from "polygon-clipping" seems the way to go for now. 👍
Describe the bug
I'm using https://vitejs.dev, and I'm getting an error during
vite build
.import {union} from "polygon-clipping"
If i do a default import, this works fine:
import polygonClipping from "polygon-clipping"
I have checked the polygon-clipping ESM, it looks fine?
Unsure if this is a Vite or polygon-clipping issue. Thanks!
Reproduction
https://codesandbox.io/s/vite-react-ts-forked-yhl2b?file=/src/App.tsx
Open terminal
Run
yarn vite build
See error flagged by the
import {union} from "polygon-clipping"
lineSystem Info
The text was updated successfully, but these errors were encountered: