Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'media' functionality not recognisable in scala 2.13 #356

Open
hubca opened this issue Feb 2, 2023 · 1 comment
Open

'media' functionality not recognisable in scala 2.13 #356

hubca opened this issue Feb 2, 2023 · 1 comment

Comments

@hubca
Copy link

hubca commented Feb 2, 2023

When upgrading to Scala 2.13 I'm getting an error on all media functionality when calling it in an inline stylesheet, e.g.

trait SharedStyleSetting extends StyleSheet.Inline {

  import dsl._

  ..
  val hideOnSmallDevice = style(
      media.maxWidth(xs_breakPoint._1)(
        display.none
      )
  )
  ..
}

I can see that media is now (in Scala 2.13) an Any type as opposed to DslBase.MediaQueryEmpty.type as it previously was (in Scala 2.12). The files look identical so I'm thinking that it could be a conflict issue. As you'll see below I'm using 'ext-monocle-cats' with 'scalajs-react' so I'm not able to be on the latest stable versions for all

lazy val scalaJsReactV = "1.7.7"
lazy val scalacssV = "0.8.0-RC1"
..

lazy val frontEnd = (project in file("front-end"))
  .settings(
    sharedSetting("FrontEnd"),
   ..
  Seq(
        libraryDependencies ++= Seq(
          "com.github.japgolly.scalajs-react" %%% "core" % scalaJsReactV,
          "com.github.japgolly.scalajs-react" %%% "extra" % scalaJsReactV,
          "com.github.japgolly.scalajs-react" %%% "ext-monocle-cats" % scalaJsReactV,
          "com.github.japgolly.scalacss" %%% "core" % scalacssV,
          "com.github.japgolly.scalacss" %%% "ext-react" % scalacssV,
          ..
       )
  )
).enablePlugins(ScalaJSPlugin, JSDependenciesPlugin, ScalaJSBundlerPlugin, BuildInfoPlugin)
..

Any ideas on this?

@hubca
Copy link
Author

hubca commented Feb 8, 2023

Just me then I guess..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant