Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Can't resolve 'seedrandom/lib/alea' [...] Did you mean 'alea.js'? #3365

Open
deRohrer opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@deRohrer
Copy link

I recently updated to jsPsych 8.0.1.
Upon running npm start, I get...


Error:
ERROR in ./node_modules/jspsych/dist/index.js 3:0-45
Module not found: Error: Can't resolve 'seedrandom/lib/alea' in 'projectpath\node_modules\jspsych\dist'
Did you mean 'alea.js'?
BREAKING CHANGE: The request 'seedrandom/lib/alea' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.


I am coding in typescript using VS Code on Windows 11. When I add ".js" to "import seedrandom from 'seedrandom/lib/alea(.js)'" in ./node_modules/jspsych/dist/index.js 3:0-45 however, everything runs as expected and as it did before updating jspsych. Thank you for your advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant