Alerts and Modals do not work
Closed this issue · 2 comments
dalepo commented
Hello, I appreciate this template, I got the camera working because of this.
It seems that modals and alerts break because of ionicpwaelements
To reproduce simply add an alert on a button and present() it
If I remove ionicpwaelements on index.html, they work.
Error below
vendor.js:32757 ERROR Error: Uncaught (in promise): TypeError: a.playAsync is not a function
TypeError: a.playAsync is not a function
at common.js:107
at step (common.js:51)
at Object.next (common.js:32)
at fulfilled (common.js:23)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2710)
at Object.onInvoke (vendor.js:34908)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2709)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2460)
at polyfills.js:3194
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2743)
at common.js:107
at step (common.js:51)
at Object.next (common.js:32)
at fulfilled (common.js:23)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2710)
at Object.onInvoke (vendor.js:34908)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2709)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2460)
at polyfills.js:3194
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2743)
at resolvePromise (polyfills.js:3136)
at polyfills.js:3046
at rejected (common.js:24)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2710)
at Object.onInvoke (vendor.js:34908)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2709)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2460)
at polyfills.js:3194
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:2743)
at Object.onInvokeTask (vendor.js:34899)
oori commented
Resolved in recent versions, see: ionic-team/pwa-elements#23 (comment)
jcesarmobile commented
working fine now