Running Ionic at cca throw “Cannot read property 'Keyboard' of undefined” @ app.js:14

前端 未结 3 1302
南笙
南笙 2021-01-18 10:21

The following is what I did to setup Ionic in Chrome App for Mobile:

  1. Created a Chrome App for Mobile project - cca create projectname
  2. Cr
3条回答
  •  北海茫月
    2021-01-18 10:46

    I started getting the same error after removing plugins directory (I had a hook that was adding the plugins as part of the add platform). There are 3 plugins that ionic adds for a new project. I did not have keyboard and console ones as part of my hook.

    Check that you have following cordova plugins:

    cordova plugin add ionic-plugin-keyboard
    cordova plugin add org.apache.cordova.console
    cordova plugin add org.apache.cordova.device
    

    Once I added missing plugins to the ones added by hook the error was gone.

    Also, if node_modules was removed, npm install will be needed.

提交回复
热议问题