These are chat archives for japgolly/scalacss

18th
Aug 2016
Barry Kern
@bskern
Aug 18 2016 20:26 UTC
Hello trying to update a github template for scalajs with react that uses scalacss ..I basically have upgraded versions to latest of these two and the ScalaJS plugin but when I run I am getting this error
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "createElement" of undefined (Lscalacss_ScalaCssReactFns$.sjsir#19)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3701)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3679)
    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3707)
    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3726)
    at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3743)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2269)
    at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2262)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1317)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3102)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    at org.mozilla.javascript.Context.evaluateString(Context.java:1078)
    at org.scalajs.jsenv.rhino.package$ContextOps$.evaluateFile$extension(package.scala:21)
    at org.scalajs.jsenv.rhino.RhinoJSEnv.org$scalajs$jsenv$rhino$RhinoJSEnv$$internalRunJS(RhinoJSEnv.scala:211)
    at org.scalajs.jsenv.rhino.RhinoJSEnv$Runner.run(RhinoJSEnv.scala:87)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$.org$scalajs$sbtplugin$ScalaJSPluginInternal$$jsRun(ScalaJSPluginInternal.scala:642)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$57$$anonfun$apply$40$$anonfun$apply$41.apply(ScalaJSPluginInternal.scala:702)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$57$$anonfun$apply$40$$anonfun$apply$41.apply(ScalaJSPluginInternal.scala:696)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
java.lang.RuntimeException: Exception while running JS code: TypeError: Cannot call method "createElement" of undefined (Lscalacss_ScalaCssReactFns$.sjsir#19)
    at scala.sys.package$.error(package.scala:27)
    at org.scalajs.jsenv.rhino.RhinoJSEnv.org$scalajs$jsenv$rhino$RhinoJSEnv$$internalRunJS(RhinoJSEnv.scala:227)
    at org.scalajs.jsenv.rhino.RhinoJSEnv$Runner.run(RhinoJSEnv.scala:87)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$.org$scalajs$sbtplugin$ScalaJSPluginInternal$$jsRun(ScalaJSPluginInternal.scala:642)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$57$$anonfun$apply$40$$anonfun$apply$41.apply(ScalaJSPluginInternal.scala:702)
    at org.scalajs.sbtplugin.ScalaJSPluginInternal$$anonfun$57$$anonfun$apply$40$$anonfun$apply$41.apply(ScalaJSPluginInternal.scala:696)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
any ideas?
Otto Chrons
@ochrons
Aug 18 2016 20:55 UTC
don't use rhino for DOM stuff :)