W
W
Woodwalker2021-01-22 11:44:43
npm
Woodwalker, 2021-01-22 11:44:43

Module linking issue?

The project is composed in such a way that it is divided into separate modules, which are linked via npm link with each other and with the application itself.
And to make it easier to understand my question, I will write a small diagram of how I link the modules.
Application <= Module1 <= Module2 <= Module3
And now there is a situation in which, if you link in this way, then Module2 is linked not quite correctly. If something is changed in it, then the application does not start a rebuild. But if, for example, you write a conditional console.log in a non-function (for example, near imports), then reassembly occurs. But if, for example, we remove Module1, and link the chain directly to the Application, then everything is fine.
I have absolutely no idea what is wrong with this module. I hope there are people who have worked with modules and who can suggest something (I have no one else to ask).
Update
Also, if you look, then physically, the module has been replaced in node_modules.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question