Skip to main content

Overview

Normalization errors are thrown during the normalization phase when provider or entity definitions have invalid shapes. This phase converts raw decorator metadata into normalized internal records. All normalization errors are internal errors.

Error Reference

MissingProvideError

Thrown when a provider/entity definition is missing the provide token.
Example:

InvalidUseClassError

Thrown when useClass on a provider/entity is not a valid class (constructor function).
Example:

InvalidUseFactoryError

Thrown when useFactory on a provider/entity is not a function.
Example:

InvalidUseValueError

Thrown when useValue on a provider/entity is undefined.
Example:

InvalidEntityError

Thrown when an entity (tool, resource, adapter, etc.) has an invalid shape.
Example: