Skip to content

Error : Support for the experimental syntax 'classProperties' isn't currently enabled  #93

Description

@victorfernandesraton

I trying use checkbx in my project and this error appears:

Enviroment:
react-native: 0.63.3,
react-native-check-box : 2.1.7

Support for the experimental syntax 'classProperties' isn't currently enabled (28:22):

26 | }
27 |

28 | static propTypes = {
| ^
29 | ...ViewPropTypes,
30 | leftText: PropTypes.string,
31 | leftTextView: PropTypes.element,

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions