-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Closed
Copy link
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
🔎 Search Terms
used before its declaration. ts(2449)
Class decorators having issues to contain the class namespace
🕗 Version & Regression Information
- This is a crash
- This changed between versions
5.4.2(not exists) and5.5.0-dev.20240312(exists)
5.4.2
5.5.0-dev.20240312
⏯ Playground Link
No response
💻 Code
@Injectable()
export class CacheService {
constructor(
@Inject(REDIS_CLIENT) private readonly cache: IRedisClient,
// Getting the error for the following line
@LoggerNamespace(CacheService.name) private readonly logger: Logger,
) {}
/**
}🙁 Actual behavior
Getting this error:
Class 'CacheService' used before its declaration.ts(2449)
cache.service.ts(8, 14): 'CacheService' is declared here.
🙂 Expected behavior
No errors should be presented.
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug

