U
U
user_of_toster2021-11-29 12:02:26
JavaScript
user_of_toster, 2021-11-29 12:02:26

How to automatically detect circular dependencies or get rid of this problem?

It happens that 3\4\5 modules form a cyclic dependency among themselves, which is recognized at runtime in a completely unexpected place in the form of Module.Method is not a function.

How to automatically detect circular dependencies so as not to keep track of them in your mind, and so that they do not break a completely unexpected place in runtime? Or how to write in such a way that you don’t worry about cyclic dependencies?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-29
@user_of_toster

There is a circular-dependency-plugin for webpack .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question