JS code error: identifier has already been declared

URL of experiment: Sign in · GitLab

Description of the problem:
Hi everyone,
My experiment is stuck on initializing, I get the following error:
Uncaught SyntaxError: Identifier ‘pi’ has already been declared

Not sure what is wrong with this JS code (pi=Math.PI;)

Delete it. PsychoJS does it automatically.

1 Like

Thanks a lot! It all worked well!

I have a similar error (Uncaught SyntaxError: Identifier ‘np’ has already been declared), but not sure how to solve it…
I see the ‘‘np’’ in line 113 of the script, but do not know how to solve this error. Can you advise me what to do?

Are you trying to use numPy? It doesn’t work online.