-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
It is not possible compile example app due to typescript compilation error.
- Run
yarn install
command - Run
npx prisma migrate dev
command - 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
Labels
No labels