Scala import not working - object <name> is not a member of package, sbt preppends current package namespace in imports

imports can be relative. Is that the only import you have? be careful with other imports like

import com.me

ultimately, this should fix it, then you can try to find more about it:

import _root_.com.me.project.database.Database


In my case I also needed to check that object which is not found as a member of package is compiled successfully.


In my case I had to run sbt clean.

Tags:

Scala