Skip to content

Client does not work with ES6 projects #31

@petruki

Description

@petruki

Attempting to use the library in a React app but got errors when importing the library.
The reason is that Switcher-Cliente for JavaScript contains class properties that are not compatible with ES6 natively. A workaround would be necessary to include babel settings which is something that I don't think is nice to do.

Solution
Moved properties outside the classes might fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions