Minimal reproduction using earcut@2.2.4 can be found here: https://codepen.io/Pessimistress/pen/yLGXvab Sample polygon with 2 holes does not triangulate correctly:  Remove one hole:  Remove the other hole: 