Skip to content

wrong Type in main.ts #1159

@Markus-Schroeder-de

Description

@Markus-Schroeder-de

i get this Error, because in main.ts the const app is from type INestApplication cds.in requires Type Application.

Used Versions:

  • node version: 18.19.0
  • npm version 10.8.2
  • cds-dk: 7.9.4
  • cds: 7.9.3

Error-Messages:
the src/main.ts:10:7 - error TS2345: Argument of type 'INestApplication' is not assignable to parameter of type 'Application'.
Type 'INestApplication' is missing the following properties from type 'Application<Record<string, any>>': defaultConfiguration, engine, set, param, and 59 more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions