Home > Back-end >  pixi-essentials/SVG libtess.js library is undefined when I use SvgScene
pixi-essentials/SVG libtess.js library is undefined when I use SvgScene

Time:02-14

Types of the library seem to not be recognized from typescript. here is the error in chrome dev tools

CodePudding user response:

The issue was with the libtess library itself. What fixed it was wraping the .min.js file like this:

var libtess = (function() {
...
return this.libtess;
}).apply(new Object());
  • Related