Skip to content

%%% seems broken with "illegal dynamic reference" #1331

Closed
@sjrd

Description

@sjrd

The following causes an "illegal dynamic reference: autoImport" error to be reported by sbt:

libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.7.0-SNAPSHOT"

If I inline the body of the %%% macro, everything works fine:

libraryDependencies += {
  import org.scalajs.sbtplugin._
  val cross = {
    if (ScalaJSPlugin.autoImport.jsDependencies.?.value.isDefined)
      ScalaJSCrossVersion.binary
    else
      CrossVersion.binary
  }
  impl.ScalaJSGroupID.withCross("org.scala-js", "scalajs-dom", cross) % "0.7.0-SNAPSHOT"
}

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