Issues when trying to start with NestCli, but regular nodemon env works?
DaRabus opened this issue · comments
Dominik Rabus commented
Hey Guys,
I am usually starting my application with a nodemon script and it works fine, but today i wanted to switch to the Nest CLI and wanted to build and start with the commands "nest build" or "nest start"
but now i suddently get these weirdo errors, and i have no clue where they come from, i tried to remove my paginated services and controllers, but the error remains, and when i start it with nodemon, everything works fine?
Do I missunderstand something or is it some typing issues in the Library? Using the newest version of NestJS and Typeorm + this library
`node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:94 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:34
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:224 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:37
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:104 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:34
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:176 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:37
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:129 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:37
6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:118 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:48
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:191 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:51
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
Found 7 error(s).
rabus@rabus-worklaptop:~/WebstormProjects/dxnest$ nest build
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:94 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:34
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:224 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:37
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository<T>, options: IPaginationOptions<CustomMetaType>, searchOptions?: FindOptionsWhere<T> | FindManyOptions<T>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:104 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:34
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:176 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:37
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:129 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:37
6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:118 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:48
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~
This type parameter might need an `extends ObjectLiteral` constraint.
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:191 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~~~~~~~~~~~~~~
node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:51
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder<T>, options: IPaginationOptions<CustomMetaType>): Promise<[Pagination<T, CustomMetaType>, Partial<T>[]]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an `extends ObjectLiteral` constraint.
Found 7 error(s).