| Reference | Downloads | Github

Experiment Stuck on the initializing experiment page

URL of experiment:

Description of the problem: Page gets stuck on initializing the experiment
Web-Konsole Error : *Tone.js v13.8.6 *
SyntaxError: Import declarations may only appear at top level of a module

I tried to delete all code components in the begin of the experiment settings.
Hope you can help me.
Greetings Lisa

@Lisa_Ddt, there is an import statement in one of your code components causing the current syntax error. For now, you cannot use import statements in code components for online studies.

 import {normal, randint, random, shuffle} from 'numpy/random';
1 Like

Thank you for your fast answer, this helps me a lot.
Do you have an idea how to shuffle without using this code?
Thanks !!!

Yes, you can shuffle in-place using the builtin shuffle method e.g.,

myArray = [1, 2, 3, 4, 5];
1 Like

Tanks, it works awesome !!!