SoftwareBrothers/adminjs-mikroorm

No adapters found with nestjs

rubiin opened this issue · 0 comments

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