sergey-telpuk / nestjs-rbac

Awesome RBAC for NestJs
Other
421 stars 36 forks source link

Update to Nestjs 8 #73

Closed MassimoTambu closed 2 years ago

MassimoTambu commented 2 years ago

When I use your package with a Nestjs project based on version 8 I get this error:

Nest can't resolve dependencies of the StorageRbacService (?, class {
            async getRbac() {
                return rbac;
            }
        }). Please make sure that the argument ModuleRef at index [0] is available in the RBAcModule context.

I solved it in my fork by updating the dependencies. You can take it as an example: I've done some edits for my specific usecase. If I remember correctly the big deal has been move "reflect-metadata" to "peerDependencies".

sergey-telpuk commented 2 years ago

@MassimoTambu the release 1.7.3 supports nestjs >=8