Ah, it seems the IocConfig module is not being added as a transitive dependency, hence Service does not exist for Type 'afIocConfig::FactoryDefaults'
.
The quickest fix is to add the following to your build.fan
:
depends = ["sys 1.0+", "afBedSheet 1.0.16+", "afIoc 1.4.6+", "afIocConfig 0+"]
meta = ["afIoc.module" : "mt::AppModule"]
That is, add afIocConfig
as a dependency and define your AppModule as pod meta. Then start BedSheet with just the pod name:
fan afBedSheet mt 12345
This is an issue with v1.0.16 when afIocConfig was split out into it's own pod - the tests passed because afBedSheet itself depends on afIocConfig. d'Oh!
This should be fixed in afBedSheet v1.1.0.