中文
← Errors

F_SYSTEM_MULTIPLE_MISSING_COMMANDS

Multiple missing commands

The application registers more than one fallback for unknown command names.

Updated 2 weeks ago

Reproduction

func cannot choose between multiple unknown-command fallbacks:

src/app.module.ts
import { CommandMissing, Container } from 'func'

@CommandMissing()
class FirstMissing {}

@CommandMissing()
class SecondMissing {}

new Container([FirstMissing, SecondMissing])

How to fix it

Register exactly one missing command and consolidate the fallback behavior there:

src/app.module.ts
@CommandMissing()
class MissingCommand {}

new Container([MissingCommand])