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

using arrow function throws classProperties not enabled #26

Closed
xgenvn opened this issue Mar 4, 2019 · 3 comments
Closed

using arrow function throws classProperties not enabled #26

xgenvn opened this issue Mar 4, 2019 · 3 comments

Comments

@xgenvn
Copy link

xgenvn commented Mar 4, 2019

Hi,

Currently I'm trying to use arrow function inside a react component, and got error during build:

 Support for the experimental syntax 'classProperties' isn't currently enabled

Is there anyway to support babel plugin such as "@babel/plugin-proposal-class-properties" so that classProperties can be used?

@asadm asadm closed this as completed in caa26d0 Mar 4, 2019
@asadm
Copy link
Contributor

asadm commented Mar 4, 2019

Thanks @Naaman-Saif!
I have pushed npm beta with this fix. npm i -g zero@1.0.10-alpha.5

@xgenvn
Copy link
Author

xgenvn commented Mar 5, 2019

I'm appreciated that PR caa26d0 is merged, however, it produced unnecessary changes than the functionalities it's adding. Please check again your coding guideline and format the files (I see changes in space to tab, multiline array declaration to single line, etc ...)

@asadm
Copy link
Contributor

asadm commented Mar 6, 2019

Thanks for the suggestions. I did add prettier on pre-commit hook after this. That should fix this for everyone.

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

2 participants