I'm currently facing some challenges with node and typescript that are causing issues in my Visual Studio 2015 projects. In the solution, I have two projects named Web and WebAPI.
Both projects have node.js installed, each with their own node_modules folder. The problem arises when trying to compile WebAPI, as it starts throwing errors stating that it cannot find various names in the typescript files such as 'd3' and '$'. It's strange because this issue only occurs when attempting to publish the Web project, even though the error is within WebAPI's files.
To further complicate matters, if I clean the entire solution and rebuild it, no issues arise; it's only when I try to publish the Web project. Surprisingly, I do not encounter the same problem when publishing the WebAPI project.
If anyone has insights or suggestions on how to resolve this perplexing situation, your assistance would be greatly appreciated.