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

Import of TerminusModule does not work has expected #96

Closed
dgabrielli76 opened this issue Mar 27, 2019 · 2 comments
Closed

Import of TerminusModule does not work has expected #96

dgabrielli76 opened this issue Mar 27, 2019 · 2 comments

Comments

@dgabrielli76
Copy link

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Import of TerminusModule is broken

Expected behavior

Import of TerminusModule should works

Minimal reproduction of the problem with instructions

Simply try to import like that :
import { TerminusModule } from '@nestjs/terminus';

And run your app, you'll see that Nest displays an error message:
Nest can't resolve dependencies of the TerminusBootstrapService (TerminusModuleOptions, TerminusLib, ?). Please make sure that the argument at index [2] is available in the TerminusModule context.

What is the motivation / use case for changing the behavior?

When looking in terminus-bootstrap.service.d.ts, it seems that HttpAdapterHost import is broken, I do not see this package in @nestjs/core, maybe an update in @nestjs/core has been done.

Environment


Nest version: 5.4.0

 
For Tooling issues:
- Node version: v10.12.0
- Platform:  Mac

Others:

@BrunnerLivio
Copy link
Member

BrunnerLivio commented Mar 27, 2019

I guess you have a mismatch of @nestjs/core and @nestjs/terminus versions. Either install npm i @nestjs/terminus@5.6.0 or uprgade npm i @nestjs/core @nestjs/common to at least 6.x.x.

@dgabrielli76
Copy link
Author

I re-installed @nestjs/terminus and fixed it to version 5.6.0 like you said and it perfectly works! Thanks for this quick and helpful answer!

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