1,882 questions
0 votes
3 answers
148 views
Resolving a circular/recursive dependency with dependency injection
Say I have this interface: public interface IExample { string GetSupportedExtension(); void DoWork(Stream input); } a concrete implementation like: public class PdfExample : IExample { ...
1 vote
0 answers
99 views
cycling dependency with TypeORM
I have two abstract classes with mutual dependencies to represent versionable entities : The version class : import type { VersionableEntity } from './versionable.entity.js'; export abstract class ...
9 votes
2 answers
589 views
How can I flatten a circular dependency using C++20 modules?
My game engine in C++ using modules from C++20. class A contains unique_ptr of class B, class B contains regular pointer to class A and unique_ptr to class C, and this structure continues for 4 levels ...
2 votes
1 answer
88 views
how to manage jotai atoms effectively to prevent circular dependency when using joati on frontend, with react-query?
I am trying to create a sort of complex react/jotai game with a next.js frontend server router connected to an express/node.js backend server. I keep getting circular dependency issues. I tried using ...
0 votes
1 answer
46 views
Circular dependency between modules returns undefined even with forwardRef()
I'm new to NestJS and currently facing a circular dependency issue between two modules: InvoicesModule and TransactionsModule. Both modules depend on each other, so I tried resolving it using ...
0 votes
0 answers
39 views
NestJS: After adding a new module and injecting services from other modules, application stopped working
I'm building a backend application using NestJS, and everything was working smoothly. Recently, I added a new module and attempted to use services from existing modules within it. However, after ...
0 votes
0 answers
60 views
Bug related with circular imports using Flask
So i have some flask code, two files affected one is flask_app.py and the other one is routes.py. The error thrown were ranging from Error running WSGI application 2025-03-16 23:05:30,980: ...
2 votes
4 answers
157 views
Recursive query to figure out record which creates circular dependency
I have a postgress table incoming_records which contains 2 column supervisor_id, emp_id create table incoming_records(supervisor_id,emp_id)as values (null,01) --top level resources with blank ...
0 votes
0 answers
24 views
Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! springboot
jakarta.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an ...
1 vote
1 answer
71 views
Solve circular dependency by "overloading" modules in Angular
I am developing part of an application where we have some custom built generic components. One of these component is a GenericForm which we use for easily creating forms, and another component is ...
3 votes
0 answers
128 views
onModuleInit Not Executing Due to Circular Dependency in NestJS with forwardRef()
I'm facing an issue in my NestJS application where the onModuleInit lifecycle hook is not being executed in one of my services (JobsService) when a circular dependency is involved. Specifically: ...
0 votes
0 answers
60 views
Class extends value undefined is not a constructor or null - circular dependency
When I am triying to generate migrations I get this error Error during migration generation: Error: Unable to open file: "/home/angel/Contenedores/nestjs/plantilla/src/database/config/typeorm....
0 votes
0 answers
24 views
Flask app DB module avoiding circular import
I'm trying to avoid circular import at my Flask app (based on oracledb), but get "RuntimeError: Database pool not initialized". How can I properly handle the DB pool creation (create without ...
-1 votes
2 answers
174 views
How to avoid circular dependency in our Vue.js Project?
My project is created using Vue, Vite and Pinia. I used options api for communication in my project. I want to know the tips that I should follow to never face this problem so that I can always use it ...
0 votes
1 answer
249 views
What is the best practice for avoiding (or handling) circular dependency in NestJS when needed for table relationships?
I'm working on building an API for a small hackathon project. It will be a platform for teachers to share lesson plans for students. I created my first table, Subject, to store lesson subjects like ...