Skip to content

Its not possible compile example app #36

@JaLe29

Description

@JaLe29

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions