adminjs-nestjs
adminjs-nestjs copied to clipboard
Repo needs an update
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:
- "To see example usage see the example-app or visit the Nestjs section under AdminBro project page": the second link is broken and I can't find a similar documentation page on your current website
- example-app still uses beta versions of @admin-bro/express, @admin-bro/mongoose, and @admin-bro/nestjs
- /src/index.ts gives outdated indications, for example:
@Module({
imports: [
// createAdmin options are wrong
AdminModule.createAdmin({
rootPath: '/admin',
resources: [],
}),
],
})
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.
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'