Skip to content

"nest build" fails when using Fastify #37

@isegundo

Description

@isegundo

I am using nestcloud boot and consul.
When using Nest with Fastify we cannot build an app that uses nestcloud:

$ npm run build

> b2b-product-search-service@0.0.1 prebuild /home/trenduser/dev/git/new-product-search/b2b-product-search-service
> rimraf dist


> b2b-product-search-service@0.0.1 build /home/trenduser/dev/git/new-product-search/b2b-product-search-service
> nest build

node_modules/@nestcloud/common/interfaces/proxy.interface.d.ts:1:35 - error TS2307: Cannot find module 'express' or its corresponding type declarations.

1 import { Request, Response } from 'express';
                                    ~~~~~~~~~
node_modules/@nestcloud/common/utils/provider.util.d.ts:10:71 - error TS2307: Cannot find module 'typeorm' or its corresponding type declarations.

10     inject: (string | Function | import("@nestjs/common").Type<import("typeorm").Connection>)[];
                                                                         ~~~~~~~~~
node_modules/@nestcloud/common/utils/provider.util.d.ts:15:71 - error TS2307: Cannot find module 'typeorm' or its corresponding type declarations.

15     inject: (string | Function | import("@nestjs/common").Type<import("typeorm").Connection>)[];
                                                                      ~~~~~~~~~

As a workaround I installed express and typeorm, but I don't believe this is the correct approach.

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