Skip to content

Possible bug with transforming static class properties #125

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

Closed
developerdizzle opened this issue Apr 27, 2018 · 5 comments
Closed

Possible bug with transforming static class properties #125

developerdizzle opened this issue Apr 27, 2018 · 5 comments
Labels

Comments

@developerdizzle
Copy link

This works in parcel via babel, but not here:

SyntaxError: Unexpected token (10:19) C:\Users\Dizzle\Documents\GitHub\react-virtual-list\src\VirtualList.js (nodent)
  static propTypes = {
-------------------^

Is this a buble or nodent issue, or something else I might be missing?

Using [email protected]

@thiamsantos
Copy link

That's probably happening because buble doesn't support class properties.

@developerdizzle
Copy link
Author

That's probably happening because buble doesn't support class properties.

Welp... you got me buble

Guessing this will be addressed in the future by the switch to babel ?

@developit
Copy link
Owner

Yup! (also +1 for art reference haha)

@marvinhagemeister
Copy link
Collaborator

@zzswang transformation of class properties should be supported in the latest release

@zzswang
Copy link

zzswang commented Mar 12, 2019

@marvinhagemeister

Thank you, yes it is fixed in the latest version.

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

No branches or pull requests

5 participants