Open clenhof opened 1 year ago
I would get this same error, but I "fixed" it by refreshing the compile cache. I don't use DOM at all, and idk what Earcut even is.
I have this error, too, and frequently. I commented the line out where the error came from, but sure this is a (very) poor way of dealing with this issue
This is a weird one where I'll get the error in a new project, and then do some combination of restarting VScode, refreshing the compile cache, and reinstalling the same version of heaps to get it working.
Commenting out lines or adding defines has never been necessary after a few attempts.
Maybe something that could be useful for compiler cache debugging @Simn ?
When following the tutorials at https://heaps.io/documentation, up to the drawable section https://heaps.io/documentation/drawable.html, the sample won't compile.
The error says :
hxd.earcut.Earcut is missing field triangulate_h2d_GPoint
This can be solved by adding this define flag in compile.hxml:
-D domkit-heaps
I guess we have either to update the documentation or preferably modify the code, so Earcut doesn"t depend on Domkit Define flag.