Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
victorfernandesraton opened this issue Oct 29, 2020 · 0 comments

Comments

@victorfernandesraton
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant