question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No information in stack trace about which dependency can't be resolved

See original GitHub issue

I’m submitting a…


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

Current behavior

I try to testing e2e using provided example in documentation, ( I have mongoose module also for database integration) but I got error, and can’t figure out, where I have mistake due to no detailed information about dependency which can’t be resolved.

 "before all" hook:
     Error: Nest can't resolve dependencies of the useFactory (?). Please verify whether [0] argument is available in the current context.
      at Injector.lookupComponentInExports (node_modules/@nestjs/core/injector/injector.js:129:19)

Expected behavior

Good to have detailed info in stack trace about which dependency can’t be resolved. (Angular provide detailed info about which dependency can’t be resolved)

Minimal reproduction of the problem with instructions

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

Environment


Nest version: 5.0.0

 
For Tooling issues:
- Node version: 10.1  
- Platform:  Mac 

Others:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kamilmysliwieccommented, May 25, 2018

In v5.0.1 you should receive a more descriptive error. Let me know if you still face any issue

0reactions
lock[bot]commented, Sep 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Could not resolve dependencies, artifacts could not be ...
Doing mvn dependency:tree, dependency:list, or the usual build package, will result in the same error. The error from running the 'package' ...
Read more >
Failure with Add API Dependency in Studio 7.4.1. An error ...
I'm unable to add any API dependency. I'm getting the following stack trace. I can't for the life of me figure out what's...
Read more >
Setting up Jenkins to run automated tests against expression ...
Could not resolve all dependencies for configuration ':classpath'. ... running with the --stacktrace option to get more information as to what went wrong....
Read more >
Gradle build error. Build failed with an exception - Help/Discuss
Could not resolve all task dependencies for configuration ... Run with --stacktrace option to get the stack trace. Run with --info or ...
Read more >
Cannot resolve dependencies... - Optimizely World
Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found