Translating PsychoPy code to Javascript & general documentation

The problem as I mentioned earlier was this: I couldn’t run it on the local server because of the trialList file. As the thread mentions, it will only work on the psychopy server.

Now I am facing another issue :

  • TypeError: visual.Line is not a constructor

Which is quite similar to this. Unfortunately, the suggestions by @jonathan.kominsky don’t seem to work in this case.

PS: I feel I should really open new questions or at-least post the issues in a more specific question for better organization and searchability. Any opinions or say community guidelines?

I think that using the error message as the thread name is the most useful.

I think that “is not a constructor” may mean that it doesn’t work online. For example I think I found that polygon and rec work but circle doesn’t

1 Like

2 posts were merged into an existing topic: TypeError: visual.Line is not a constructor

Great Idea actually. So I opened a new topic. @jonathan.kominsky and @dvbridges you can post your suggestions there. Meanwhile, I will try to use shapeStim or rect as suggested.

Thanks.