Comments (1)
I'm not sure if this is related to NestJS tbh - this doesn't sound like a pattern we'd like to support at the framework level. My hunch is that your process crashes because you're entering a circular loop that never exists and runtime seeing that just terminates it, but I might be wrong - I'd have to spend more time looking into this
I'd like this to work because I'm trying to conditionally loading a module depending on a provider's value, which is why I need to use factory providers
This doesn't sound like something you should be doing. If you want to load a module dynamically, use lazy modules. Otherwise, the modules graph is constructed before providers are resolved so this won't ever work without magic tricks that your app shouldn't rely on
from nest.
Related Issues (20)
- Payment integration using phonepay documentation HOT 1
- handleConnection method can conflict with WebSocket Gateway lifecycle hook HOT 1
- Feat: Add support for turbopack HOT 1
- The sequence of messages from the Observable pipe in the sse method of router-response-controller.ts is disordered. HOT 1
- configurable threshold for The module ... is taking ...ms to serialize HOT 2
- owned types are marked as extension HOT 1
- zod validation with @Param error HOT 1
- Why I can't use Logger in extended (child) classes? HOT 1
- path is undefined when using file FilesInterceptor for file uploading HOT 2
- How to use metadata to get information from decorators HOT 2
- NestJs middlewares don't run when fastify is the HTTP adapter HOT 3
- Just started with the boilerplate and test does not run HOT 2
- MQTT microservice mishandles `data` key in JSON payload HOT 2
- Typescript Error for using the version 10.3.9 of @nestjs/platform-fastify. HOT 2
- response.getHeaders() function always returns empty object in NestJS with Fastify. HOT 2
- with queue's enabled not all EventPattern's get triggered HOT 1
- "Nest new path" Does not install Typeorm dependencies. HOT 2
- Logger with dynamic module that uses useFactory to create a transient logger / add context not working HOT 1
- Typegoose Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest.