error TS2339: Property 'diagnostic' does not exist on type 'CordovaPlugins'

后端 未结 1 1734
醉酒成梦
醉酒成梦 2021-01-24 06:58

I am using Ionic 2.

I followed this, and did the following:

cordova plugin add cordova.plugins.diagnostic
npm install -g typings 
typings in         


        
1条回答
  •  离开以前
    2021-01-24 07:24

    So for Ionic 2, try window['plugins'] in place of cordova.plugins.

    0 讨论(0)
提交回复
热议问题