From 8c603aa78dd9bf224b36b1f70abab9a64ebbecde Mon Sep 17 00:00:00 2001 From: Alex Rockhill Date: Mon, 6 Jan 2025 10:41:10 -0800 Subject: [PATCH 1/2] BUG: Compiler error cannot find script --- packages/jspsych/src/modules/randomization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jspsych/src/modules/randomization.ts b/packages/jspsych/src/modules/randomization.ts index e58ebaffda..5da2ee0f11 100644 --- a/packages/jspsych/src/modules/randomization.ts +++ b/packages/jspsych/src/modules/randomization.ts @@ -1,5 +1,5 @@ import rw from "random-words"; -import seedrandom from "seedrandom/lib/alea"; +import seedrandom from "seedrandom/lib/alea.js"; /** * Uses the `seedrandom` package to replace Math.random() with a seedable PRNG. From 2f8413970e06ef23dd0dd03059e2f88da396136b Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Tue, 7 Jan 2025 11:10:10 -0500 Subject: [PATCH 2/2] add changeset --- .changeset/thick-waves-bathe.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/thick-waves-bathe.md diff --git a/.changeset/thick-waves-bathe.md b/.changeset/thick-waves-bathe.md new file mode 100644 index 0000000000..1eab0c2d66 --- /dev/null +++ b/.changeset/thick-waves-bathe.md @@ -0,0 +1,5 @@ +--- +"jspsych": patch +--- + +Modify import of seedrandom to fix build issue with some configurations of webpack