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

can't parse class attribute #230

Closed
gsabran opened this issue Jun 4, 2016 · 2 comments
Closed

can't parse class attribute #230

gsabran opened this issue Jun 4, 2016 · 2 comments

Comments

@gsabran
Copy link

gsabran commented Jun 4, 2016

There might be something weird with some .babelrc but

class Task extends Component {
  static propTypes = {
    task: PropTypes.object.isRequired,
    userId: PropTypes.string,
  };
  ...
}

can't be parsed when using storybook. This raises Unexpected token on the = apparently.
I'm on a meteor project with no custom .babelrc

@gsabran
Copy link
Author

gsabran commented Jun 4, 2016

fix with a standard .babelrc ...:

{
  "presets": [
    "es2015",
    "stage-0",
    "react"
  ]
}

@gsabran gsabran closed this as completed Jun 4, 2016
@TigerC10
Copy link
Contributor

TigerC10 commented Jun 7, 2016

#227 Fixes this issue; Pretty recent change to the project. I'm still getting a few slight errors from needing to update the stage in storybook-eol/storybook-ui#1 - need #241 to fully resolve, I think.

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