rubiin / ultimate-nest

Starter template with blog clone as project
MIT License
338 stars 45 forks source link

Nest can't resolve dependencies #525

Open Filoz opened 3 weeks ago

Filoz commented 3 weeks ago

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

Filoz commented 3 weeks ago

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 commented 3 weeks ago

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

Filoz commented 3 weeks ago

Hi @rubiin thank you!