SoftwareBrothers / adminjs-mikroorm

MIT License
3 stars 6 forks source link

No adapters found with nestjs #9

Closed rubiin closed 2 years ago

rubiin commented 2 years ago

Hi I am using mikroorm with nestjs like this:

AdminModule.createAdminAsync({
            inject: [MikroORM],
      useFactory: (orm:MikroORM) => ({
        adminJsOptions: {
          rootPath: '/admin',
          resources: [{ resource: User, orm }],
        }
      })
    }),

Running the app shows the following error

(node:195520) UnhandledPromiseRejectionWarning: NoResourceAdapterError: There are no adapters supporting one of the resource you provided