Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"nest build" fails when using Fastify #37

Open
isegundo opened this issue Oct 15, 2020 · 0 comments
Open

"nest build" fails when using Fastify #37

isegundo opened this issue Oct 15, 2020 · 0 comments

Comments

@isegundo
Copy link

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

$ npm run build

> [email protected] prebuild /home/trenduser/dev/git/new-product-search/b2b-product-search-service
> rimraf dist


> [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant