playframework/play-samples

play-scala-hello-world-tutorial: compilation error with implicit value not found for assertsFinder

coocooyao opened this issue · 0 comments

Hi, I am new to Scala / Play here. I am wondering if anyone could help me with the following issue I encountered when following along the hello world tutorial

Basically I am trying to add a new page. I followed the tutorial, added a new view, a new method in controller, and a new route. However, I am getting a compilation error showing:

play.sbt.PlayExceptions$CompilationException: Compilation error[could not find implicit value for parameter assetsFinder: controllers.AssetsFinder]
        at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34)
        at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34)
        at scala.Option.map(Option.scala:230)
        at play.sbt.run.PlayReload$.$anonfun$taskFailureHandler$8(PlayReload.scala:127)
        at scala.Option.map(Option.scala:230)
        at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:100)
        at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:38)
        at play.sbt.run.PlayReload$.$anonfun$compile$3(PlayReload.scala:152)
        at scala.util.Either$LeftProjection.map(Either.scala:573)
        at play.sbt.run.PlayReload$.compile(PlayReload.scala:152)

[warn] Canceling execution...

Can someone help me figure out where went wrong please?

Code change:

https://github.com/coocooyao/play-samples/pull/1/files