Ionic 2 "Error: missing deployment plugin: สปionic deployment plugin '"

When I try to make any Ionic Cloud Deploy service calls in my application, I get the following error message in my browser. This happened only recently, and the application works fine on a real device.

What could be the reason? I have installed the plugin to which it refers in the config.xml file. I also tried uninstalling the plugin by removing all platforms and then adding everything back, but no luck. I even see this error following the Ionic docs in the new project.

Uncaught (in promise): Error: Missing deploy plugin: `ionic-plugin-deploy` Error: Missing deploy plugin: `ionic-plugin-deploy` at Object. <anonymous> (http://localhost:8100/build/main.js:58591:17) at __webpack_require__ (http://localhost:8100/build/main.js:20:30) at Object. <anonymous> (http://localhost:8100/build/main.js:59389:73) at __webpack_require__ (http://localhost:8100/build/main.js:20:30) at Object. <anonymous> (http://localhost:8100/build/main.js:57303:10) at __webpack_require__ (http://localhost:8100/build/main.js:20:30) at Object. <anonymous> (http://localhost:8100/build/main.js:102834:79) at __webpack_require__ (http://localhost:8100/build/main.js:20:30) at Object. <anonymous> (http://localhost:8100/build/main.js:91442:73) at __webpack_require__ (http://localhost:8100/build/main.js:20:30) 
+6
source share
1 answer

The error looks as if you are running your code in a browser (ion service), and not on a real device or simulator.

However, the ion deployment plugin only works on devices. If you are working with another part of your application using a browser, you can ignore the error (s). If you want to debug your deploy code, you need to use the device.

If you want to disable dependent code from execution, you can use platform.is ('cordova') to check if you are on a real device or not.

+8
source

Source: https://habr.com/ru/post/1013755/


All Articles