Closed faithfulojebiyi closed 2 years ago
+1
+1
Are you experiencing the same thing too
+1
Are you experiencing the same thing too
yes, getting same error
i've got the same error. it occurs here on pwa-camera.entry.js:
if (c.fillLightMode.length > 1) {
this.flashModes = c.fillLightMode.map(function (m) { return m; });
// Try to recall the current flash mode
if (this.flashMode) {
this.flashMode = this.flashModes[this.flashModes.indexOf(this.flashMode)] || 'off';
this.flashIndex = this.flashModes.indexOf(this.flashMode) || 0;
}
else {
this.flashIndex = 0;
}
}
return [2 /*return*/];
Fixed with a simple:
if (c.fillLightMode && c.fillLightMode.length > 1) {
this.flashModes = c.fillLightMode.map(function (m) { return m; });
// Try to recall the current flash mode
if (this.flashMode) {
this.flashMode = this.flashModes[this.flashModes.indexOf(this.flashMode)] || 'off';
this.flashIndex = this.flashModes.indexOf(this.flashMode) || 0;
}
else {
this.flashIndex = 0;
}
}
not sure why it cant get fillLightMode though. opening a PR as soon as possible. Iam also getting a no Camera found on Rear camera. Still trying on that one
PR #68 solves this issue
closing as #68 was merged
Resources: Before submitting an issue, please consult our docs.
Stencil version: (run
npm list @stencil/core
from a terminal/cmd prompt and paste output below):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://stencil-worldwide.slack.com
Error in console: Uncaught (in promise) TypeError: Cannot read property 'length' of undefined at class_1.eval (pwa-camera.entry.js?da8b:404) at step (pwa-camera.entry.js?da8b:32) at Object.eval [as next] (pwa-camera.entry.js?da8b:13) at fulfilled (pwa-camera.entry.js?da8b:4).
Expected behavior:
Steps to reproduce:
Related code:
Other information: On tap button camera opens and works fine but once the camera is open theres an error in console.