2

I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime.

For the specific error I get, I performed all the steps mentioned at: Configuring Apache Cordova with VS2015.

I am not able to get rid of this error and run the most basic project.

Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z

<code>enter image description here</code>

halfer
  • 19,824
  • 17
  • 99
  • 186
Deepak Pathak
  • 626
  • 1
  • 9
  • 19
  • 2
    Have you tried clear the cordova cache as mentioned in the error log? – Elvis Xia - MSFT Jan 30 '17 at 01:27
  • @Deepak Pathak Did you tried out the solution? Did it helped? Please revert as bounty is running out – Gandhi Feb 06 '17 at 05:19
  • Elvis Xia - MSFT - I tried clearing the cache, then closing and re-opening the project, doing a clean rebuild. But no luck yet. :( – Deepak Pathak Feb 10 '17 at 17:31
  • This project is missing an [mcve] because the code is not in the question itself, which is a Stack Overflow requirement. Would you edit this question to make that amendment? Thankfully the external link still works. – halfer Jul 31 '19 at 21:28

2 Answers2

2

I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156

The solution is for a slightly different problem, but in my case it did resolve it. :)

EDIT: here's the solution from that post:

Close all VS instances

cd %appdata%\"..\Local\Microsoft\Phone Tools"

rename CoreCon folder to something else

Launch VS again.

Community
  • 1
  • 1
Sam
  • 845
  • 7
  • 20
  • Sam - I did the same, rebuilt the project but still the same error :( – Deepak Pathak Feb 10 '17 at 17:37
  • Hmmm...errors like these can be extremely annoying. Sometimes it comes down to reinstalling Visual Studio because it's honestly just a thoroughly confused program (though still very useful). – Sam Feb 10 '17 at 20:00
  • Sam - So, do you suggest a "Repair" of VS 2015 installation. I have community edition installed. – Deepak Pathak Feb 11 '17 at 11:28
  • Either that or a reinstall. It seems like you might be at that "last resort" point. :/ – Sam Feb 12 '17 at 06:44
  • Sam - Okay, doing a repair... I don't know why things screwed up for me... – Deepak Pathak Feb 12 '17 at 11:43
  • Nothing helped guyz, I don't know what is the issue here :( If someone can help and have some free time, I can share my screen to fix this? – Deepak Pathak Feb 24 '17 at 04:58
  • Would love to help but I really wouldn't know what to suggest. Have you tried a complete uninstall and reinstall? (I know it's a pain) – Sam Mar 01 '17 at 04:42
  • I just did a repair for TACO, I have the community edition of VS 2015. – Deepak Pathak Mar 07 '17 at 08:01
2

As mentioned in the official link - configure VS tools for Apache Cordova which you are following,

If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename].

For other errors, you may have to look at workarounds link.

According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again.

I also suggest you to look at the following SO posts which should help you out in this issue.

  1. VS dont work with TACO
  2. Error with cordova using VS

Hope this helps. Cheers.

Community
  • 1
  • 1
Gandhi
  • 11,875
  • 4
  • 39
  • 63