adminjs-prisma icon indicating copy to clipboard operation
adminjs-prisma copied to clipboard

Its not possible compile example app

Open JaLe29 opened this issue 2 years ago • 0 comments

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

JaLe29 avatar May 29 '23 15:05 JaLe29