Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo needs an update #4

Open
humbkr opened this issue Oct 27, 2020 · 1 comment
Open

Repo needs an update #4

humbkr opened this issue Oct 27, 2020 · 1 comment
Assignees

Comments

@humbkr
Copy link

humbkr commented Oct 27, 2020

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.

@humbkr
Copy link
Author

humbkr commented Oct 27, 2020

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants