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

Missing @nestjs/schedule dependency #13

Closed
Mistic92 opened this issue Dec 21, 2020 · 2 comments
Closed

Missing @nestjs/schedule dependency #13

Mistic92 opened this issue Dec 21, 2020 · 2 comments

Comments

@Mistic92
Copy link

When trying to build my project using this repo I'm getting below error.
Should I add @nestjs/schedule into my package (which should be noted in readme.md) or it will be added into unleash repo?

nest build

node_modules/nestjs-unleash/dist/src/unleash/updaters/base-updater.d.ts:2:35 - error TS2307: Cannot find module '@nestjs/schedule' or its corresponding type declarations.

2 import { SchedulerRegistry } from '@nestjs/schedule';
                                    ~~~~~~~~~~~~~~~~~~
node_modules/nestjs-unleash/dist/src/unleash/updaters/metrics-updater.service.d.ts:1:35 - error TS2307: Cannot find module '@nestjs/schedule' or its corresponding type declarations.

1 import { SchedulerRegistry } from '@nestjs/schedule';
                                    ~~~~~~~~~~~~~~~~~~
node_modules/nestjs-unleash/dist/src/unleash/updaters/toggles-updater.service.d.ts:1:35 - error TS2307: Cannot find module '@nestjs/schedule' or its corresponding type declarations.

1 import { SchedulerRegistry } from '@nestjs/schedule';
                                    ~~~~~~~~~~~~~~~~~~

Found 3 error(s).
@pmb0
Copy link
Owner

pmb0 commented Dec 21, 2020

@nestjs/schedule is a peer dependency. You have to install it. and make sure you use typescript 4.1.0 or newer.

i will update the readme.

@Mistic92
Copy link
Author

Yep, it's working after adding it :)

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

2 participants