0 Replies Latest reply on Jan 19, 2017 11:56 PM by thodorise57053028

    build fail on windows phone when use app preferences plugin

    thodorise57053028

      hello when i use cordova-plugin-app-preferences plugin, build fails on winphone.

       

      Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-plugin-app-preferences" via npm Installing "cordova-plugin-app-preferences" at "0.99.3" for windows Failed to install 'cordova-plugin-app-preferences':Error: Cannot find module 'cordova' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Context.requireCordovaModule (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pgb-plugman\node_modules\pgb-cor dova-lib\src\hooks\Context.js:77:12) at module.exports (C:\cygwin\tmp\gimlet\1086553\project\cordova\plugins\cordova-plugin-app-preferences\bin\ lib\android.js:11:13) at module.exports (C:\cygwin\tmp\gimlet\1086553\project\cordova\plugins\cordova-plugin-app-preferences\bin\ after_plugin_install.js:9:37) at runScriptViaModuleLoader (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pgb-plugman\node_modules\pgb-cor dova-lib\src\hooks\HooksRunner.js:187:18) at runScript (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pgb-plugman\node_modules\pgb-cor dova-lib\src\hooks\HooksRunner.js:165:16) at C:\Users\Administrator\AppData\Roaming\npm\node_modules\pgb-plugman\node_modules\pgb-cord ova-lib\src\hooks\HooksRunner.js:133:20 Cannot find module 'cordova' - You can fix this here