Skip to content

mill debate.js.test fails  #76

Description

@smithjessk

Just as it says on the tin: mill clean; mill __.test fails with:

jesssmith@Jesss-Air ~/p/debate (debate-scheduler)> mill __.test                                                                        (py310) 
[58/172] debate.js.compile 
[info] compiling 34 Scala sources to /Users/jesssmith/projects/debate/out/debate/js/compile.dest/classes ...
[info] done compiling
[100/172] debate.js.test.test 
Starting process: node
(node:48483) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/jesssmith/projects/debate/out/debate/js/test/fastLinkJSTest.dest/main.js:2
import * as $i_jquery from "jquery";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:74:18)
    at wrapSafe (node:internal/modules/cjs/loader:1141:20)
    at Module._compile (node:internal/modules/cjs/loader:1182:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:167:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
1 targets failed
debate.js.test.test org.scalajs.testing.common.RPCCore$ClosedException: org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException
org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException
org.scalajs.jsenv.ExternalJSRun$NonZeroExitException: exited with code 1

Platform / Context

  • I ran npm install
  • The commands to run the server run without error AFAICT.
  • This was in the branch debate-scheduler. The bug also exists in main as of 0bb4c7b.
jesssmith@Jesss-Air ~/p/debate (main)> uname -a                                                                                         (base) 
Darwin Jesss-Air 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions