InvalidPropertyTokenError
@tsed/di
Usage
typescript
import { InvalidPropertyTokenError } from "@tsed/di";See /packages/di/src/common/errors/InvalidPropertyTokenError.ts.
Overview
ts
class InvalidPropertyTokenError extends Error {
name: string;
constructor(target: any, propertyKey: string);
}Description
Error thrown when an invalid token is used for property injection.
Typically indicates a circular reference, missing import, or undefined token in property decorators like @Inject() or @Constant().
Common causes
- Circular dependency between classes
- Missing or incorrect import statement
- Using
undefinedas a token - Forward reference not properly handled
name
ts
name: string;