Scala projects stop working on IntelliJ

My Scala projects which were working fine recently, now give me issue when I try to run a program:

Error:Module ‘XXX’ production: sbt.compiler.CompileFailed

What is missing here?

SO link:

Is that really your SBT module name or are you redacting for posting?

Try quitting IntelliJ; deleting the .idea folder in one of your problem
projects and reimporting that project as a project that tracks SBT. See if
that helps.

Thanks. Reimporting worked.

Excellent! Glad it helped.