I keep getting this in the console…
Uncaught SyntaxError: Unexpected token (2:9)
at raise (paper-full.js:14884)
at unexpected (paper-full.js:15524)
at expect (paper-full.js:15520)
at parseFor (paper-full.js:15767)
at parseStatement (paper-full.js:15612)
at parseTopLevel (paper-full.js:15544)
at Object.exports.parse (paper-full.js:14798)
at parse (paper-full.js:16097)
at compile (paper-full.js:16324)
at execute (paper-full.js:16355)
You probably aren’t working on this project anymore, but I ran into the same problem and found a solution. I was getting the same error you got in the console because I was using “let” and “const” to initialize my variables. Apparently, paperscript doesn’t allow you to initialize variables in this way. Once I changed everything to “var”, it worked. I hope this will help anyone who has the same problem.