Stack
Error: Uncaught (in promise): cordova_not_available
at c (http://localhost:8100/build/polyfills.js:3:19132)
at http://localhost:8100/build/polyfills.js:3:19653
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15040)
at Object.onInvokeTask (http://localhost:8100/build/vendor.js:4238:33)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:14961)
at r.runTask (http://localhost:8100/build/polyfills.js:3:10214)
at o (http://localhost:8100/build/polyfills.js:3:7274)
at e.invokeTask [as invoke] (http://localhost:8100/build/polyfills.js:3:16203)
at p (http://localhost:8100/build/polyfills.js:2:26993)
at HTMLFormElement.v (http://localhost:8100/build/polyfills.js:2:27238)
Ionic Framework: 3.7.1
Ionic App Scripts: 3.0.0
Angular Core: 4.4.3
Angular Compiler CLI: 4.4.3
Node: 6.11.3
OS Platform: Windows 8.1
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Generally speaking, Cordova only works on devices.
It’s a bit pointless - and impolite to use and rude to our time - to post an error message without a question or comment on what your environment is, what command you are running, what you want to achieve.
Yes it works fine on Device. But to get error message i was trying to run on browser
Sorry, I updated query
Ionic Native plugins only work in native environments generally.
Some also support the Cordova platform browser
, but you have to specifically run ionic cordova run browser
for that, not ionic serve
.
Post your ionic info
output please.
@ionic/cli-utils : 1.13.0
ionic (Ionic CLI) : 3.13.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.7.1
System:
Node : v6.11.3
npm : 3.10.10
OS : Windows 8.1
Misc:
backend : pro
Did you get solution ? I also have same problem …