Skip to content

Cannot Run on iOS 15.5 #363

@kueiapp

Description

@kueiapp

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.

  1. 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

  1. 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

  1. Connects a iPhone to MacBook and allows inspect mode for debugging
  2. Use the device to open the demo page
  3. Open Safari dev-tool from menu Develop on MacBook by selecting the device page
  4. Go back to the device and reload the page
  5. The error logs would show on the dev-tool console

Screenshots
Screenshot 2023-08-24 at 9 42 41
Screenshot 2023-08-24 at 9 55 15
Screenshot 2023-08-24 at 9 55 31

Smartphone (please complete the following information):

  • Device: iPhone SE3, iPhone 7
  • OS: iOS 15.5
  • Browser Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions