I'm migrating a project using vanilla kotlin-inject, and I use me.tatarka.inject.generateCompanionExtensions = true for all of my components. When running with kotlin-inject-anvil I get the following error:
When you have the option me.tatarka.inject.generateCompanionExtensions=true you must declare a companion option on the component class for the extension function to apply to.
You can do so by adding 'companion object' to the class.
because the generated KotlinInject*Component classes don't declare a companion object.
I'm migrating a project using vanilla kotlin-inject, and I use
me.tatarka.inject.generateCompanionExtensions = true
for all of my components. When running with kotlin-inject-anvil I get the following error:because the generated
KotlinInject*Component
classes don't declare acompanion object
.