-
Notifications
You must be signed in to change notification settings - Fork 18
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
static properties misuse of colon instead of = ? #5
Comments
I could get it to work by using |
Well that's odd because stage 0 include stage 2 |
oh yes you're right. I've always thought that it is the other way round hahah This is my
|
I still get the same error when using @VIC-L's exact I'm working on top of a react-boilerplate framework if that changes anything It looks like react-boilerplate doesn't apply babel to files in node_modules. I was able to get it working by applying babel to the node_modules directory as well, but that drastically increased build time |
Hi there, I think the colon in
export default class FloatingLabel extends React.Component { static propTypes: {
is throwing error in babel. Is it also the case on your end? I am using web pack 2 with .babelrc like this
{ "presets": [ ["es2015", { "modules": false}], "react", "stage-0" ], "plugins": ["react-hot-loader/babel"] }
shouldn't it be
static propTypes = {...}
The text was updated successfully, but these errors were encountered: