ReferenceError: os/frameDur is not defined when I upload my experiment

I tried to upload my experiment to a server by exporting it as HTML, but it’s not working. I get two error messages after I enter the ID number.
Also I’m using the latest version of Psychopy and Windows 11.

Unfortunately we encountered the following error:

  • ReferenceError: os is not defined

Try to run the experiment again. If the error persists, contact the experiment designer.

Unfortunately we encountered the following error:

  • ReferenceError: frameDur is not defined

Try to run the experiment again. If the error persists, contact the experiment designer.

Do you have any advice or solutions, please?

I suspect you are trying to access local files, which won’t work online. Here are a couple of relevant links.

Translation Problem: OS is not defined (however, you can now use custom file names)