While node.js does allow circular require
dependencies, as you’ve found it can be pretty messy and you’re probably better off restructuring your code to not need it. Maybe create a third class that uses the other two to accomplish what you need.
While node.js does allow circular require
dependencies, as you’ve found it can be pretty messy and you’re probably better off restructuring your code to not need it. Maybe create a third class that uses the other two to accomplish what you need.