中文
← Errors

F_SYSTEM_INVALID_APPLICATION_FEATURE_LIST

Invalid application feature list

createApp.features is not an array of ApplicationFeature objects.

Updated

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.