Skip to content

JSFidde example in Vuex docs "Getting Started" page doesn't work in Safari on macOS or iOS #790

@tinymachine

Description

@tinymachine

Version

2.3.0

Reproduction link

https://jsfiddle.net/n9jmu5v7/341/

Steps to reproduce

Open JSFiddle link above in Safari on macOS or iOS (I'm running Safari 10.1.1 on macOS and iOS 10.3.1).

What is expected?

The result quadrant should show a live counter displaying 1 and the increment/decrement buttons should work when you click them.

What is actually happening?

The result quadrant shows {{ count }}, the increment/decrement buttons don't work, and the console displays the error message, SyntaxError: Can't create duplicate variable that shadows a global property: 'app'.


Changing the JS language setting from 'Babel JSX' to just 'JavaScript' fixes the error and works in Chrome, Firefox, and Safari.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions