Scala inherited parsing method

I am handling some compilation errors (in Scala / Play Framework) and one that I cannot resolve is the conflict error. This is mistake:

class Games inherit conflicting elements:

[error] parsing method in the BaseController attribute Type references => play.api.mvc.PlayBodyParsers and

[error] lazy parsing on BodyParsers of type play.api.mvc.PlayBodyParsers [error] (Note: this can be resolved by declaring an override in the Games classes.)

And this is the function (or class) 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 will notice that it says that:

this can be solved by declaring an override in the Games class

But after trying a few things, I'm not sure how to go about it. If anyone has any suggestions for this or any other method that might resolve this error, please post. Thanks to

+3


source to share





All Articles