-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pro: Cannot read property 'deploy' of undefined #2136
Comments
I'm also experiencing this problem. It occurs for me on IOS. |
@DavidTalamona Are you sure it isn't, for some reason, that the cordova-plugin-ionic isnt registering properly on your device? I'm running into the same issue, and the more I think about it -- i feel like cordova-plugin-ionic is not registering properly. |
@ibcooley I'm sure it's a bug in the TS plugin wrapper. The file itself looks like this:
With this fix everything works as expected! |
The source line failing: https://github.com/ionic-team/ionic-native/blob/master/src/%40ionic-native/plugins/pro/index.ts#L136 |
Seems like this is fixed on the v5 branch tho. Would be nice to get a release that contains that fix before v5. (Or just a v5 release soon™️) |
That is excellent news. Is there an ETA on v5? On Jan 21, 2018 3:14 PM, Gustav Bylund <notifications@github.com> wrote:Seems like this is fixed on the v5 branch tho. Would be nice to get a release that contains that fix before v5. (Or just a v5 release soon™️)
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
|
@ihadeed probably knows more about the v5 ETA |
Hi all, thanks for the tips here. Can you try version 4.5.3 of @ionic-native/pro? Both of these issues should be resolved. |
Looks like it's resolved, thanks! |
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
When using the ionic native package for "pro" with version 4.2.2 (latest at the moment) live reload as well as
ionic serve
fail with errorCannot read property 'deploy' of undefined
Expected behavior:
No error ;o)
Steps to reproduce:
Simply include the plugin and the native package in some app. Don't even have to actively use it. The error ocurrs on initialization of the package.
Related code:
Temporarily fixed it by changing
node_modules -> @ionic-native -> pro -> index.js
line 153 from_this.deploy = new ProDeploy(Pro_1.getPlugin()).deploy);
into
_this.deploy = new ProDeploy((Pro_1.getPlugin() || {}).deploy);
Looks like some fallback must be there if the plugin itself is not present!
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: