Experiment not working on Pavlovia: variable is not iterable (cannot read property undefined)

Now it runs and gives the error

{“origin”:“WindowMixin._getLengthPix”,“context”:“when converting a length from stimulus unit to pixel units”,“error”:“unable to deal with unit: degFlat”}

Units must be height, norm or pixels to work online.