TypeError: cameraModal.componentOnReady is not a function (on Android emulator)
See original GitHub issueTried using the camera feature on an Android emulator:
const image = await Camera.getPhoto({ quality: 98, allowEditing: false, resultType: CameraResultType.Base64, source: CameraSource.Camera });
TypeError: cameraModal.componentOnReady is not a function at CameraPluginWeb.<anonymous> (https://localhost:6147/build/0.js:654:70) at step (https://localhost:6147/build/vendor.js:19296:23) at Object.next (https://localhost:6147/build/vendor.js:19277:53) at https://localhost:6147/build/vendor.js:19270:71 at new t (https://localhost:6147/build/polyfills.js:3:21506) at Object.__awaiter [as b] (https://localhost:6147/build/vendor.js:19266:12) at https://localhost:6147/build/0.js:646:143 at new t (https://localhost:6147/build/polyfills.js:3:21506) at CameraPluginWeb.<anonymous> (https://localhost:6147/build/0.js:646:39) at step (https://localhost:6147/build/vendor.js:19296:23)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top GitHub Comments
Add
<script type="module" src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.esm.js"></script> <script nomodule src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.js"></script>in your index.html file
This Doc Will Help You