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 inflight@1.0.6: 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/config-array@0.13.0: Use @eslint/config-array instead
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated eslint@8.57.1: 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.

> demo@1.0.0 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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions