-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
Description
This is a "port" of the issue scala-js/scala-js#3432. Trying to use JSDOMNodeJSEnv
with jsdom 12 or later results in the following error message:
sbt:root> test-project/run
[info] Running testproject.TestApp. Hit any key to interrupt.
codeWithJSDOMContext.js:10
var virtualConsole = jsdom.createVirtualConsole()
^
TypeError: jsdom.createVirtualConsole is not a function
at codeWithJSDOMContext.js:10:30
at codeWithJSDOMContext.js:37:3
at Script.runInThisContext (vm.js:96:20)
at Object.runInThisContext (vm.js:303:38)
at [stdin]:2:29
at Script.runInThisContext (vm.js:96:20)
at Object.runInThisContext (vm.js:303:38)
at Object.<anonymous> ([stdin]-wrapper:6:22)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at evalScript (internal/bootstrap/node.js:582:27)
[error] org.scalajs.jsenv.ExternalJSRun$NonZeroExitException: exited with code 1
[error] at org.scalajs.jsenv.ExternalJSRun$$anon$1.run(ExternalJSRun.scala:186)
[error] (test-project / Compile / run) org.scalajs.jsenv.ExternalJSRun$NonZeroExitException: exited with code 1
We need to forward-port the changes made in 0.6.x in scala-js/scala-js@8d1938b#diff-b097042b8f58e84b044e481289fa803d