Skip to content

Instantly share code, notes, and snippets.

@jasonmartens
Created November 26, 2015 00:09
Show Gist options
  • Save jasonmartens/e4fde985eb50b7f7fb92 to your computer and use it in GitHub Desktop.
Save jasonmartens/e4fde985eb50b7f7fb92 to your computer and use it in GitHub Desktop.
last compile:run
[info] Running example.ScalaJSExample
[debug] with JSEnv of type class org.scalajs.jsenv.nodejs.NodeJSEnv
[debug] with classpath of type class org.scalajs.core.tools.classpath.LinkedClasspath
[error] /Users/jasonmartens/test/scala-js-example-app/target/scala-2.11/example-fastopt.js:1765
[error] var paragraph = $g["document"]["createElement"]("p");
[error] ^
[error]
[error] TypeError: Cannot read property 'createElement' of undefined
[error] at $c_Lexample_ScalaJSExample$.main__V (/Users/jasonmartens/test/scala-js-example-app/target/scala-2.11/example-fastopt.js:1765:33)
[error] at $c_Lexample_ScalaJSExample$.$$js$exported$meth$main__O (/Users/jasonmartens/test/scala-js-example-app/target/scala-2.11/example-fastopt.js:1770:8)
[error] at $c_Lexample_ScalaJSExample$.main (/Users/jasonmartens/test/scala-js-example-app/target/scala-2.11/example-fastopt.js:1773:15)
[error] at Object.<anonymous> (/Users/jasonmartens/test/scala-js-example-app/target/scala-2.11/example-launcher.js:2:87)
[error] at Module._compile (module.js:425:26)
[error] at Object.Module._extensions..js (module.js:432:10)
[error] at Module.load (module.js:356:32)
[error] at Function.Module._load (module.js:313:12)
[error] at Module.require (module.js:366:17)
[error] at require (module.js:385:17)
org.scalajs.jsenv.ExternalJSEnv$NonZeroExitException: node.js exited with code 1
at org.scalajs.jsenv.ExternalJSEnv$AbstractExtRunner.waitForVM(ExternalJSEnv.scala:96)
at org.scalajs.jsenv.ExternalJSEnv$ExtRunner.run(ExternalJSEnv.scala:143)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$.org$scalajs$sbtplugin$ScalaJSPluginInternal$$jsRun(ScalaJSPluginInternal.scala:479)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$45$$anonfun$apply$27$$anonfun$apply$28.apply(ScalaJSPluginInternal.scala:539)
at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$45$$anonfun$apply$27$$anonfun$apply$28.apply(ScalaJSPluginInternal.scala:533)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] (compile:run) org.scalajs.jsenv.ExternalJSEnv$NonZeroExitException: node.js exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment