No default wrap width for unit: use prefs ERROR

URL of experiment: https://pavlovia.org/run/Jordan_Gallant/meganMazeTask/html/

Description of the problem: Here’s the error message I’m getting:

When I looked at the JS code for experiment, wrapWidth was indeed undefined. Here’s one example, but this was true of all of the text components:

// Initialize components for Routine “thanks”
thanksClock = new util.Clock();
text = new visual.TextStim({
win: psychoJS.window,
name: ‘text’,
text: ‘You have completed all experimental trials!\n\nCongratulations and thank you for participating\n\nPress SPACE to end experiment’,
font: ‘Arial’,
pos: [0, 0], height: 0.1, wrapWidth: undefined, ori: 0,
color: new util.Color(‘white’), opacity: 1,
depth: 0.0
});

I’m not sure how to remedy this.

Set the experiment to have a unit in the experiment settings - right now you’ve got it set to “use prefs” but set it to a value (e.g. height units). Then tee Xx objects will know what to do as a default

1 Like

Thanks @jon, it’s up and running now.

Also fixed in https://github.com/psychopy/psychopy/pull/2233, for the next release.