Error occurred during command execution from a CLI plugin (@ionic/cli-plu gin-cordova)


#1

Hello friends!
When running ionic cordova run android --device displays the following error:

C:\Users\Ionic\Proyectos\lechuche>ionic cordova r
un android --device
Running app-scripts build: --address=0.0.0.0 --port=8100 --p=8100 --livereload-p
ort=35729 --r=35729 --iscordovaserve --external-ip-required --nobrowser

[18:17:44]  build dev started ...
[18:17:44]  clean started ...
[18:17:44]  clean finished in less than 1 ms
[18:17:44]  copy started ...
[18:17:44]  transpile started ...
[18:17:48]  transpile finished in 3.83 s
[18:17:48]  preprocess started ...
[18:17:48]  deeplinks started ...
[18:17:48]  deeplinks finished in 78 ms
[18:17:48]  preprocess finished in 78 ms
[18:17:48]  webpack started ...
[18:17:48]  copy finished in 4.14 s
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plu
gin-cordova). Your plugins may be out of date.
Error: ./~/firebase/app/shared_promise.js
Module not found: Error: Can't resolve 'promise-polyfill' in 'C:\Users\Miguel\Do
cuments\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\firebase\app'
resolve 'promise-polyfill' in 'C:\Users\Miguel\Documents\varios\Miguel\Ionic\Pro
yectos\lechuche\node_modules\firebase\app'
  Parsed request is a module
  using description file: C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyecto
s\lechuche\node_modules\firebase\package.json (relative path: ./app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: C:\Users\Miguel\Documents\varios\Miguel\Ionic\Pr
oyectos\lechuche\node_modules\firebase\package.json (relative path: ./app)
    resolve as module
      looking for modules in C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proye
ctos\lechuche\node_modules
        using description file: C:\Users\Miguel\Documents\varios\Miguel\Ionic\Pr
oyectos\lechuche\package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: C:\Users\Miguel\Documents\varios\Miguel\Io
nic\Proyectos\lechuche\package.json (relative path: ./node_modules)
          using description file: C:\Users\Miguel\Documents\varios\Miguel\Ionic\
Proyectos\lechuche\package.json (relative path: ./node_modules/promise-polyfill)

            as directory
              C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\n
ode_modules\promise-polyfill doesn't exist
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\n
ode_modules\promise-polyfill doesn't exist
            .ts
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\n
ode_modules\promise-polyfill.ts doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\n
ode_modules\promise-polyfill.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\n
ode_modules\promise-polyfill.json doesn't exist
[C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\p
romise-polyfill]
[C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\p
romise-polyfill]
[C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\p
romise-polyfill.ts]
[C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\p
romise-polyfill.js]
[C:\Users\Miguel\Documents\varios\Miguel\Ionic\Proyectos\lechuche\node_modules\p
romise-polyfill.json]
 @ ./~/firebase/app/shared_promise.js 37:35-62
 @ ./~/firebase/app/firebase_app.js
 @ ./~/firebase/app.js
 @ ./~/firebase/database.js
 @ ./~/angularfire2/database/firebase_list_observable.js
 @ ./~/angularfire2/database.js
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts

CLI

global packages:

    @ionic/cli-utils : 1.2.0
    Cordova CLI      : 6.5.0
    Ionic CLI        : 3.2.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.2.1
    @ionic/cli-plugin-ionic-angular : 1.2.0
    Cordova Platforms               : android 6.1.2
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v6.10.3
    OS         : Windows 8.1
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed

Thanks!


#2

See app-scripts #1001.