I created a project using dotnet template "feliz" and added a separate mocha test project.
Running mocha dist/fable/Quittiermaske/tests throws the exception:
I suspect in fable_modules/Feliz.UseElmish.2.5.0/UseElmish.fs.js the line
import { useSyncExternalStore } from "use-sync-external-store/shim";
should actually be
import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";.
After I changed this line, mocha ran without errors.
Hello,
I ran into an exception using mocha.
I created a project using dotnet template "feliz" and added a separate mocha test project. Running
mocha dist/fable/Quittiermaske/tests
throws the exception:I suspect in fable_modules/Feliz.UseElmish.2.5.0/UseElmish.fs.js the line
import { useSyncExternalStore } from "use-sync-external-store/shim";
should actually beimport { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
. After I changed this line, mocha ran without errors.