Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'

like image 805
Jason Avatar asked Dec 19 '22 09:12

Jason


1 Answers

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.

like image 187
Ellen Avatar answered Dec 28 '22 05:12

Ellen