Skip to content

fastOptStage::run fails with Node.js fails #789

@gzm0

Description

@gzm0
[info] Running helloworld.HelloWorld
[error] 
[error] /private/tmp/scala-js-target_Jz5qK2/examples/helloworld/scala-2.11/helloworld-launcher.js:1
[error] e, module, __filename, __dirname) { this["helloworld"]["HelloWorld"]().main();
[error]                                                                     ^
[error] TypeError: Cannot call method 'HelloWorld' of undefined
[error]     at Object.<anonymous> (/private/tmp/scala-js-target_Jz5qK2/examples/helloworld/scala-2.11/helloworld-launcher.js:1:95)
[error]     at Module._compile (module.js:456:26)
[error]     at Object.Module._extensions..js (module.js:474:10)
[error]     at Module.load (module.js:356:32)
[error]     at Function.Module._load (module.js:312:12)
[error]     at Module.require (module.js:364:17)
[error]     at require (module.js:380:17)
[error]     at [stdin]:16:1
[error]     at Object.<anonymous> ([stdin]-wrapper:6:22)
[error]     at Module._compile (module.js:456:26)
[trace] Stack trace suppressed: run last helloworld/compile:fastOptStage for the full output.
[error] (helloworld/compile:fastOptStage::run) node.js exited with code 8
[error] Total time: 1 s, completed Jul 1, 2014 11:04:13 AM

Testing works. The fix to #740 is probably responsible for this.

Workaround is to use PhantomJS:

set ScalaJSKeys.postLinkJSEnv := new scala.scalajs.sbtplugin.env.phantomjs.PhantomJSEnv

Metadata

Metadata

Assignees

Labels

bugConfirmed bug. Needs to be fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions