Skip to content

"SyntaxError: Cannot declare a let variable twice: 'e'" when using vue.global.prod.js in Safari 10 (iOS 10) #2470

Closed
@HorseLuke

Description

@HorseLuke

Version

3.0.2

Reproduction link

https://codepen.io/horseluke/pen/LYZxGrv

Steps to reproduce

  1. Create blank html file, include vue.global.prod.js by using script tag
  2. Run it in Safari 10 (iOS 10)
  3. Create another blank html file, but this time include vue.global.js by using script tag
  4. Run it in Safari 10 (iOS 10)

What is expected?

Both step 2 and step 4 are work as all.

What is actually happening?

Step 2 run failed. It will throw "SyntaxError: Cannot declare a let variable twice: 'e'. [email protected]/vue.global.prod.js:1:0"

Step 4 works OK.


There is a bug on Safari 10 (iOS 10). In Vue 3.x, Minified js file will trigger this problem.

More detail and References can be found here:

online-go/online-go.com#758

https://bugs.webkit.org/show_bug.cgi?id=171041

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser specifichas PRA pull request has already been submitted to solve the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions