-
Notifications
You must be signed in to change notification settings - Fork 349
Description
Describe the bug
When coding a Vue3 project with npm version vue-qrcode-reader
from v4.0.0 to v5.3.0, it shows unhandled errors
on dev-tool console as activating camera from iOS Safari 15.5.
Therefore, to despite the coding issues, we tried to use the device with the iOS version installed to run demo page, it shows the 2 runtime errors below
when activate device camera and granted permission on browser dev-tool console.
- when activating the camera:
[Error] SyntaxError: Invalid regular expression: invalid group specifier name
RegExp
locateFile — index.cf60a0d7.js:1:3531
(anonymous function) — index.cf60a0d7.js:1:7090
Or — index.cf60a0d7.js:1:3952
Et — index.cf60a0d7.js:3:43457
yr — index.cf60a0d7.js:3:44976
(anonymous function) — index.cf60a0d7.js:3:64980
Ve — framework.ffe7611b.js:1:13586
we — framework.ffe7611b.js:1:13665
(anonymous function) — framework.ffe7611b.js:1:25237
hn — framework.ffe7611b.js:1:14956
Zr — framework.ffe7611b.js:1:15265
Zr — framework.ffe7611b.js:1:15308
promiseReactionJob
ko (framework.ffe7611b.js:1:14095)
kt (framework.ffe7611b.js:1:14048)
Ve (framework.ffe7611b.js:1:13608)
we (framework.ffe7611b.js:1:13665)
(anonymous function) (framework.ffe7611b.js:1:25237)
hn (framework.ffe7611b.js:1:14956)
Zr (framework.ffe7611b.js:1:15265)
Zr (framework.ffe7611b.js:1:15308)
promiseReactionJob
and
- granted the permission:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'xr.detect')
asyncFunctionResume
The error [Error] SyntaxError: Invalid regular expression: invalid group specifier name RegExp
is not related to qr-code scanned or not. When the page gets opened and prompts permission box, the error jumps in console logs. It seems not about the scanning funtionality.
To Reproduce
- Connects a iPhone to MacBook and allows inspect mode for debugging
- Use the device to open the demo page
- Open Safari dev-tool from
menu Develop
on MacBook by selecting the device page - Go back to the device and reload the page
- The error logs would show on the dev-tool console
Smartphone (please complete the following information):
- Device: iPhone SE3, iPhone 7
- OS: iOS 15.5
- Browser Safari