nestjsx / nest-access-control

Role and Attribute based Access Control for Nestjs 🔐

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InjectRolesBuilder error

Morb0 opened this issue · comments

commented

When trying use InjectRolesBuilder get error: TypeError: metatype is not a constructor

constructor(@InjectRolesBuilder() private readonly roleBuilder: RolesBuilder) {}
TypeError: metatype is not a constructor
    at Injector.instantiateClass (...\node_modules\@nestjs\core\injector\injector.js:214:19)
    at callback (...\node_modules\@nestjs\core\injector\injector.js:67:41)
    at process._tickCallback (internal/process/next_tick.js:68:7)

How di you get over this? I am getting the same error @Morb0