| Reference | Downloads | Github

Failed to resolve module specifier "scipy/stats"

I am working on developing a psychoPy experiment and have converted it to psychoJS to render it as an online experiment.
While debugging it locally, I find that the converted .js (created by psychoPy builder) file has a import module as follows

import * as stats from ‘scipy/stats’;

This does not run locally and throws the following exception :-1:

Uncaught TypeError: Failed to resolve module specifier “scipy/stats”. Relative references must start with either “/”, “./”, or “…/”.

As per my understanding scipy does not have an Javascript module alternative in psychoJS.
How to solve this problem ?

1 Like