Reproduction
features must be an array even when only one feature is enabled:
src/index.ts
import { createApp } from 'func'
import { withCompletion } from 'func/completion'
import { AppModule } from './app.module'
createApp(AppModule, {
features: withCompletion({ bin: 'ship' }) as any,
})How to fix it
Put every feature-factory result in an array, for example features: [withCompletion({ bin: 'ship' })]. If the application needs no features, omit features or pass an empty array. The received value is available in details.features.