Skip to content

adminjs create - failed #9

@gugupy

Description

@gugupy

Find the detailed logs below

$ adminjs create 
✔ Application name … demo
✔ Select a package manager › NPM
✔ Select a plugin for your server framework › @adminjs/fastify
✔ Select an adapter › @adminjs/mikroorm
✔ Select a database driver › PostgreSQL
✔ Would you like to configure environment variables now? You can also do that later in the .env file. … yes
✔ DATABASE_URL … 
✔ DATABASE_NAME … 
✔ DATABASE_HOST … 
✔ DATABASE_USER … 
✔ DATABASE_PASSWORD … 
⠧INFO: Setting up demo project's base template.
INFO: Base template setup successful.
INFO: Setting up @adminjs/fastify.
INFO: @adminjs/fastify setup complete.
INFO: Setting up @adminjs/mikroorm.
INFO: @adminjs/mikroorm setup complete.
INFO: Setting up a database driver: postgres
INFO: Database driver setup complete.
INFO: Preparing .env file
INFO: Installing dependencies: npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 820 packages, and audited 821 packages in 45s

218 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
⠴INFO: Running post-setup scripts.
INFO: Running postsetup.js of @adminjs/mikroorm.

added 20 packages, and audited 841 packages in 4s

218 packages are looking for funding
  run `npm fund` for details

5 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> [email protected] build
> tsc

INFO: postsetup.js of @adminjs/mikroorm finished.
INFO: Building: npm run build
src/app.ts:31:5 - error TS2345: Argument of type 'FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault> & PromiseLike<...>' is not assignable to parameter of type 'FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>'.
  Type 'FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault> & PromiseLike<...>' is missing the following properties from type 'FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>': getDecorator, propfind, proppatch, mkcalendar, and 11 more.

31     app,
       ~~~


Found 1 error in src/app.ts:31

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