Uncaught (in promise): cordova_not_available in Ionic 2

前端 未结 8 1459
情书的邮戳
情书的邮戳 2020-12-13 12:33

When I\'m running my Ionic app with ionic serve -l command, get following error message:

Runtime Error

Unca

8条回答
  •  时光说笑
    2020-12-13 13:24

    Maybe something has changed since then, but Ionic now supports the "browser" as a platform ( vs simply browse ) - which makes the Cordova plugins available in the browser.

    To use it you add the platform ionic cordova platform add browser

    And then you run ionic cordova run browser vs ionic serve ( ionic run browser - just like ionic cordova run android or ionic cordova run ios )

提交回复
热议问题