中文
← Errors

F_SYSTEM_INVALID_APPLICATION_FEATURE

Invalid application feature

A value in createApp.features was not created by a Func feature factory.

Updated

What this error means

createApp({ features }) accepts only ApplicationFeature objects recognized by func. A plain object, Module, Provider, or value forced to ApplicationFeature through a type assertion has no internal feature definition and cannot participate in bootstrap. The invalid value is available in details.feature.

How to fix it

Use a factory exported by the relevant optional entry, such as withCompletion({ bin: 'ship' }) or withProcessSignals(). Put Modules in Module.imports and Providers in Module.providers; do not hand-write or copy feature objects.