Visual Studio 2015 - Cordova - build issue, cause vs-tac / app.js not found

Versions

Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3 Microsoft .NET Framework Version 4.6.01586

VS TACO Update 10

TypeScript 2.4.1

What I've done

  • i install external tools for global nodejs

https://i.stack.imgur.com/PRqR8.jpg

  1. i changed cordova cli from 6.3.1 to 6.5.0 ... using the taco page article.

3.i used cmd to navigate to the cordova project folder in my solution like "D: \ Projects \ XYZ \ LM \ LM.CordovaApp (LM.Cordova is a project in VS2015 solution), then I try to update my cordova -android (it installed version 6.2.3). I use commands:

cordova platform remove android
cordova platform install android

      

Errors

After assembly:

MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'D:\Projects\XYZ\LM\LM.CordovaApp\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.

      

This is not exactly the same error as in this case: "Module could not be found" C: \ Users {name} \ AppData \ Roaming \ npm \ node_modules \ vs-tac \ app.js. Go to Tools -> Options -> Tools for Apache Cordova -> Cordova Tools -> Clear Cordova cache and try to build again ", in which I can find many solutions, but my error does not point to the global npm node_modules, it points to the node_modules of my project and in my global roaming \ npm \ node_modules is the vs-tac directory.

Clearing Cordova's cache doesn't help. Clear npm cache + Cordova cache doesn't help.

after looking at this page https://decoupledlogic.com/2016/05/11/fixed-error-building-cordova-in-visual-studio/ ", I had an idea ... I am adding to my package.json from project dependence:

"vs-tac": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\ApacheCordovaTools\\Packages\\vs-tac"

      

now i have rebuilt the package, rebuilt and changed the error ... to:

 BLD00401 : Could not find module 'elementtree'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.

      

but I can use the "elementtree" directory in my node_modules project ....

Pure Cord Cash doesn't help.

No, I have no ideas.

Anyone have an idea or solution ??? how to properly edit the Visual Studio Cordova Cordova Project Cordova Kli and Cordova?

actually i went back to cordova cli 6.3.1 and older platform versions ...

+3


source to share





All Articles