GithubHelp home page GithubHelp logo

Comments (3)

WonderPanda avatar WonderPanda commented on May 21, 2024 3

@jasperblues @Ermodo Thanks for providing this info guys. I'll try and push out some fixes tonight for both of these scenarios.

from nestjs.

WonderPanda avatar WonderPanda commented on May 21, 2024 1

Hey @jasperblues @Ermodo Thanks for your patience on this one. I've had a ton of stuff going on with my day job and some big plans with regards to NestJS and Open Source that I'm hoping to reveal in the near future but should have got a fix out for this sooner

This should be fixed now and is available with the following new package versions:

Please feel free to open up other issues if you come across anything and I'll try and address them in a more timely fashion

from nestjs.

Ermodo avatar Ermodo commented on May 21, 2024

I have a similar issue with transient provider. In my case, I defined a provider with 'useFactory' and 'Scope.TRANSIENT'. In this case, the instance is null as the provider is not singleton. Nestjs is not able to start and crashes silently with:

TypeError: Cannot read property 'constructor' of undefined
  File "node_modules\@nestjs-plus\discovery\src\discovery.service.ts", line 48, col 24, in component
  File "node_modules\@nestjs-plus\discovery\src\discovery.service.ts", line 90, col 57, in filter.x
  ?, in Array.filter
  File "node_modules\@nestjs-plus\discovery\src\discovery.service.ts", line 90, col 45, in DiscoveryService.providers
  File "internal/process/next_tick.js", line 68, col 7, in process._tickCallback

Expected is to ignore providers with undefined or null instances.

I am using nestjs 6.6.7 and nestjs-plus 2.0.1.

from nestjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.