microsoft / cordova-plugin-ms-appinsights

Cordova plugin for App Insights
Other
21 stars 31 forks source link

before_prepare script causing build to fail #22

Open RobertPinson opened 5 years ago

RobertPinson commented 5 years ago

Hi, The before_prepare script is causing cordova build to fail with error: Cannot find module '../configparser/ConfigParser'

This line in the script var ConfigParser = ctx.requireCordovaModule('../configparser/ConfigParser'); is causing the error.

When i change it to: var ConfigParser = ctx.requireCordovaModule('cordova-common').ConfigParser; The build completes OK.