You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: