As @tdimoff already said, the crossProject
method of the sbtcrossproject library does not accept string parameters, so this line of code lazy val webappSsr = crossProject(" webapp-ssr")
should be replaced with lazy val webappSsr = crossProject(JSPlatform, JVMPlatform)
.
Regarding the stageKey
function, it seems to be part of the scalajs-bundler library, so you need to add the following library dependency:
libraryDependencies = "ch.epfl.scala" % "scalajs-bundler" % "0.20.0"
This should allow you to use the stageKey
function.