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 can't resolve dependencies #525

Open
5 tasks done
Filoz opened this issue Oct 19, 2024 · 4 comments
Open
5 tasks done

Nest can't resolve dependencies #525

Filoz opened this issue Oct 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Filoz
Copy link

Filoz commented Oct 19, 2024

Describe the bug

Hi
I performed a ‘clean’ installation of the master branch with node v20.18.0.
I configured env.dev.

When I start with nest start --watch I get

Nest can't resolve dependencies of the UserService (UserRepository, ReferralRepository, ?, Function, Function, Function, Function). Please make sure that the argument Function at index [2] is available in the UserModule context.

Reproduction

do the "Getting started" steps and then nest start --watch

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 25.54 GB / 63.73 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.2 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@rubiin rubiin added the bug Something isn't working label Oct 19, 2024
@Filoz
Copy link
Author

Filoz commented Oct 20, 2024

Hi,
I would like to add one more detail:
I tried version 2.7.0 and 2.8.0 and they starts correctly. The problem is only in the master.

@rubiin
Copy link
Owner

rubiin commented Oct 21, 2024

Hello, this is due to a dependency issue with latest mikroorm integration for nestjs. Will try to get it fixed by this weekend

@Filoz
Copy link
Author

Filoz commented Oct 22, 2024

Hi @rubiin thank you!

@ven-daniel
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants