Ionic Pro, Monitoring: Error: The cordova-plugin-ionic plugin is not installed


#1

Hi. I’m getting this error in console by running ionic serve -scb

the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors.

Screenshot here: http://nimb.ws/DNu8o2

I guess it’s because it’s not supported by the browser (like almost all of other plugins) but I want to be sure, specially because I don’t like seeing that every time my app restarts.

Thanks!


#2

I’m also getting the same error when running in Chrome. Is this more a warning or actually a problem?


#3

How are you running the project?


#4

$ ionic serve -scb


#5

Then this is an ignorable error - native plugins are never available in ionic serve.
For web support of monitoring I can’t say anything, you have to talk to the Ionic team about that.


#6

I have the same issue and i have run it by typing command

ionic cordova run android

after the app run mobile successfully, the inspect element of google chrome give me this error

the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors.

can anyone help me?


#7

Do you have the plugin installed? If so, which command did you execute?


#8

@Sujan12 thanks for replying,
but which plugin you say?
the plugin that is shown in error?


#9

Yes, of course. We should know if you actually have the plugin installed and the error message is wrong or not and the error message is correct.


#10

I have not run any command for installing the plugin,
and even i don’t understand what plugin this error wants to install


#11

It says so right in the error message: cordova-plugin-ionic
Did you add any Ionic Pro functionality? Error monitoring for example?


#12

yes, of course
i have done it in my app


#13

Then you also installed that plugin. Or didn’t you follow the instructions?


#14

I have followed all instructions. that are written in the docs.
but i haven’t install plugin yet


#15

Take it easy guys. It’s just a Cordova plugin error in dev mode, running the local server. It works as expected in prod, Ie. when Cordova is available and it’s running in emulator/device. I think this should be more a warning than an error, just like other plugins do.


#16

If you followed all instructions, you also installed the plugin: https://ionicframework.com/docs/pro/deploy/setup/#installing-ionic-pro-plugin

As @imaatLuciano wrote, in ionic serve this output is expected.


#17

Thank you a lot for the precious answer


#18

@Sujan12 This quote is absolutely right though. It is confusing to see a ‘red’ error while debugging with ionic serve, because red is supposed to mean something needs to be fixed.

It would make more sense to show a warning instead of an error. Perhaps similar to the following example warnings that can appear during ionic serve:

Native: tried calling StatusBar.styleLightContent, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator


#20

Maybe already be taken care of: https://github.com/ionic-team/cordova-plugin-ionic/issues/6
If not, open a new issue on that repo or even a Pull Request that changes this behaviour.


#21

Thanks for the pointer! I have commented over there, we’ll see where it goes.