SoftwareBrothers / adminjs-nestjs

NestJS module to import admin the Nest way
MIT License
162 stars 37 forks source link

Repo needs an update #4

Open humbkr opened 4 years ago

humbkr commented 4 years ago

Hi guys, thanks for you work.

I'm trying to add AdminBro to my nest.js app, and I'm really struggling with the implementation.

What does not help is that this repo is not up-to-date with the latest versions of your docs or libraries:

Do you have plans to update this repo soon? It would really help people setting up AdminBro.

I'm currently having a basic error after following your example-app:

/node_modules/admin-bro/lib/admin-bro.js:213
    Database,
    ^

TypeError: Cannot destructure property `Database` of 'undefined' or 'null'.
    at Function.registerAdapter

and I cannot figure out if this is because of my setup or an issue with your libs versions.

humbkr commented 4 years ago

For those who have the same error trying to make AdminBro, the export from @adminBro/mongoose has changed since the docs and examples were written. You have to replace

import AdminBroMongoose from '@admin-bro/mongoose'

by

import * as AdminBroMongoose from '@admin-bro/mongoose'