ReferenceError: frameDur is not defined. Problem converting from pyschopy to JS?

As per Jon’s post here:

it’s probably worth trying to work out why frameDur wasn’t initialised. Do you have, for example, any blank onset values? The new errors you got when you manually fixed frameDur might give you a clue.