I'm using p5js in instance mode using the latest version (2.0.4) I came accross an error that this.p5.curveVertex() throws an error. I logged the p5 instance and saw that indeed the curveVertex method isn't there. When I switched back to an earlier version everything works as expected.