Initializing Error in Pavlovia

I have read a ton of forum posts on getting caught in the “initializing” screen in Pavlovia but have yet to see one with this error. If anyone knows of a post already addressing this, I am happy to be redirected.

I had a working Psychopy file that would run fine locally, then on my browser. In testing I ran it another another device and found some edits I wanted to make. I added some commits, then hit the non-stop “initializing” page. In developer tools, my error reads, “Uncaught SyntaxError: Illegal break statement”.

Things I’ve tried:

  • checking out to the previously functioning commit
  • downloading a copy of the previously running commit and creating that as a new project on Pavlovia
  • removing all break statements from my code (I only had one and the error persists even with that section commented out)

Has anyone run into a similar error before? Any other ideas of what I can try to get it to run again?

Here’s one about Uncaught SyntaxError: Illegal break statement

Try an incognito tab to see if removing the break statement fixed it.

Thanks for the help!

For anyone else who hits this error - I think part of it was a caching/upload error where my changes wouldn’t always be committing. I found that things I had deleted from my python were still showing up in the JavaScript. Deleting and remaking the Pavlovia repo, updating my code, rerunning it looking, then commiting worked to solve it.

I would not recommend this as a solution for cache issues, though I do sometimes delete the local JS files to ensure they are being recreated.