question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Circular Dependency Problem

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jvmahoncommented, Sep 16, 2020

Yes - I was able to figure out which section of my code was the problem - it was a problem with my plugin, not homebridge.

0reactions
jvmahoncommented, Sep 16, 2020

@oznu Thanks. That fixed my problem. Greatly appreciated!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found