You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
It is not possible compile example app due to typescript compilation error.
yarn install
commandnpx prisma migrate dev
commandyarn build
commandThe text was updated successfully, but these errors were encountered: