I'm working through some compilation errors (in Scala / Play Framework) and one I can't resolve is a conflict error. This is the error:
class Games inherits conflicting members:
[error] method parse in trait BaseControllerHelpers of type => play.api.mvc.PlayBodyParsers and
[error] lazy value parse in trait BodyParsers of type play.api.mvc.PlayBodyParsers [error] (Note: this can be resolved by declaring an override in class Games.)
And this is the function (or class) signature for the class:
class Games @Inject() (cc: ControllerComponents, actorSystem: ActorSystem)(val reactiveMongoApi: ReactiveMongoApi)(implicit mat: Materializer) extends AbstractController(cc) with MongoController with ReactiveMongoComponents {
In the error message you'll notice that it says that:
this can be resolved by declaring an override in class Games
But after having tried a few things - I am not sure how. If anyone has any suggestions on this or any other technique that could resolve this error please post. Thanks