creativename
creativename

Reputation: 304

Problems when importing Slick

I get a compilation error when I try to import these two API's in my application.scala:

import slick.driver.H2Driver.api._
import scala.concurrent.ExecutionContext.Implicits.global

I'm following the Slick documentation on http://slick.typesafe.com/doc/3.1.0/gettingstarted.html#database-configuration. This is the error I get when i try compile it on localhost:9000, compilation error. enter image description here My build.sbt:

libraryDependencies ++= Seq(
  jdbc,
  cache,
  ws,
  specs2 % Test,
  "com.typesafe.slick" %% "slick" % "2.1.0",
  "org.slf4j" % "slf4j-nop" % "1.6.4"
)

Upvotes: 1

Views: 54

Answers (1)

user5011070
user5011070

Reputation:

You have to import the H2 Driver as dependency in your build.sbt

"com.h2database" % "h2" % "1.4.190"

Upvotes: 1

Related Questions