Back to Angular

Invalid multi provider

adev/src/content/reference/errors/NG0209.md

22.0.0-next.10302 B
Original Source

Invalid multi provider

The Angular runtime will throw this error when it injects a token intended to be used with multi: true but a non-Array was found instead. For example, ENVIRONMENT_INITIALIZER should be provided like {provide: ENVIRONMENT_INITIALIZER, multi: true, useValue: () => {...}}.