Circular Dependency Problem
See original GitHub issueI’m getting the following warning when I start up my homebridge plugin:
(node:8428) Warning: Accessing non-existent property 'Characteristic' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8428) Warning: Accessing non-existent property 'Service' of module exports inside circular dependency
The code still works, but I’d like to fix this anyway.
To do so, I’d like to enable the node ‘’–trace-warnings" option as suggested in the warning message so I can identify which module is exhibiting this problem.
However, I can’t figure out how to turn on this feature when using homebridge. Can someone provide guidance of what I’d need to modify to get this to work?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What is a circular dependency and how can I solve it?
A circular dependency is where Project A depends on something in Project B and project B depends on something in Project A. This...
Read more >Circular dependency
In software engineering, a circular dependency is a relation between two or more modules which either directly or indirectly depend on each other...
Read more >Circular Dependencies in Spring
When we have a circular dependency, it's likely we have a design problem and that the responsibilities are not well separated.
Read more >Circular Dependency - The result of a poor design
Circular dependency issues can be seen in all tech stacks ( be it Java, C# or even Javascript). This happens because of poor ......
Read more >The vicious cycle of circular dependencies in microservices
A circular dependency is defined as a relationship between two or more application modules that are codependent. Circular dependencies in a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes - I was able to figure out which section of my code was the problem - it was a problem with my plugin, not homebridge.
@oznu Thanks. That fixed my problem. Greatly appreciated!