Tuesday, 16 April 2019

Linked node submodule not updating main project

I am working on an Angular app that uses a proprietary submodule for needed functionality. Within the root directory of the submodule "candidates", I am running "npm link" after building. It appears to work. I then go to the root directory of the main app and run "npm link @cb/candidates" (@cb being our company namespace). Again, this appears to work in the terminal.However, nothing actually gets updated. When I look for @cb/candidates in the node_modules folder in the main project, I see that the code being shown doesn't reflect changes made to the candidates submodule.I have followed documentation, both from npm and our own internal documentation, but maybe there's a step I'm missing somewhere.I've already tried deleting the node_modules folder and doing a clean install of all modules.Does anyone have any suggestions for how to troubleshoot this problem?

Submitted April 16, 2019 at 07:39PM by VotedPresent

No comments:

Post a Comment