Fail to compile JSscript

Description of the problem:

I was trying to sync the experiment on Pavlovia, yet I have got this error message:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 808, in fileExport
self.generateScript(experimentPath=exportPath,
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 71, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 245, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 217, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 340, in writeScript
self_copy._currentRoutine.writeEachFrameCodeJS(script, modular)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\routines_base.py”, line 564, in writeEachFrameCodeJS
comp.writeFrameCodeJS(buff)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components_base.py”, line 867, in writeFrameCodeJS
self.writeStopTestCodeJS(buff)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components_base.py”, line 389, in writeStopTestCodeJS
code = (f"frameRemains = {params[‘startVal’]} + {params[‘stopVal’]}"
TypeError: str returned non-string (type NoneType)

So basically Psychopy failed to generate Javascript for this experiment. However I could not figure out where does it come from

Notably, what is your Python code