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

Its not possible compile example app #36

Open
JaLe29 opened this issue May 29, 2023 · 0 comments
Open

Its not possible compile example app #36

JaLe29 opened this issue May 29, 2023 · 0 comments

Comments

@JaLe29
Copy link

JaLe29 commented May 29, 2023

It is not possible compile example app due to typescript compilation error.

  1. Run yarn install command
  2. Run npx prisma migrate dev command
  3. Rum yarn build command
example-app>yarn start
yarn run v1.22.5
warning ..\..\..\package.json: No license field

13 AdminJS.registerAdapter({ Database, Resource });
           ~~~~~~~~~~~~~~~

src/index.ts:20:21 - error TS2351: This expression is not constructable.
  Type 'typeof import("C:/Users/JaLe/Desktop/adminjs-prisma-main/example-app/node_modules/adminjs/index")' has no construct signatures.

20   const admin = new AdminJS({
                       ~~~~~~~

src/index.ts:41:33 - error TS2339: Property 'buildRouter' does not exist on type 'typeof import("C:/Users/JaLe/Desktop/adminjs-prisma-main/example-app/node_modules/@adminjs/express/lib/index")'.

41   const router = AdminJSExpress.buildRouter(admin);
                                   ~~~~~~~~~~~


Found 3 errors in the same file, starting at: src/index.ts:13
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

1 participant