Earcut error in CreatePolygon func

Hi.
I’m haveing an issue with CreatePolygon function.
‘Unfortunatelly’ I cann’t reproduce it in playground, so I suspect is something related to packages.

Here are few of devdependecies
image

As you can see the library was imported.
I tried with

import earcut

inside file, but without succes :frowning:
image

Here is the error
image

Thanks

can you try to load it from our cdn:
<script src=“https://preview.babylonjs.com/earcut.min.js”></script>

Ok. I’ll try and update you.

1 Like

It is workiiing :muscle:
Many thanks.

1 Like