bug with saving files that contain classes in p5.js mode?

I'm getting a funky bug using p5.js mode in the P3 PDE. I can create a javascript class, defined at the top or bottom of the main sketch file, or out in its own separate file. And I can instantiate the class and invoke methods on the object. Super tight! But as soon as I save either js file, I get a compiler error on the class definition 'SyntaxError: Expected an operand but found class'. If I delete all the class/object code, I still get the same error, until I save the file. After I save the file(s), happy compiler again (but no classes/objects).

Any workaround?

Answers

Sign In or Register to comment.