Search code examples
cordovavisual-studio-2013multi-device-hybrid-apps

Visual Studio Apache Cordova Build Error - cannot find module


I have installed visual studio apache cordova plugin and started creating the in built hello world app. but when I build I get this error. I have seen other people have the same issue on MSDN forums but no answer. can anyone help?

Cannot find module './lib/plugin'


Solution

  • Clear your Cordova Cache from within VS under Tools\Options\Tools for Apache Cordova\Cordova Tools. After you have done that, re-open your project and attempt a clean build. If you are still getting the same issue, inspect the contents of the folder %AppData%\Roaming\npm\node_modules\vs-mda\lib and reply back for further investigation.