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

Warning added if defaultProps were defined as an instance property #9433

Merged
merged 4 commits into from
Apr 21, 2017
Merged

Warning added if defaultProps were defined as an instance property #9433

merged 4 commits into from
Apr 21, 2017

Conversation

abhaynikam
Copy link
Contributor

@abhaynikam
Copy link
Contributor Author

@aweary : can you help me here? All the testcases are passing on my local but in circle ci, I am not sure why are they failing.

I was unable to run ./scripts/fiber/record-tests on my local.

@aweary
Copy link
Contributor

aweary commented Apr 14, 2017

@abhaynikam CI was failing because the recorded fiber tests weren't up-to-date. What kind of issues did you have running the record-tests script locally?

I went ahead and ran it for you and pushed it to your branch and CI is passing now 👍

@abhaynikam
Copy link
Contributor Author

@aweary : While running the script ./scripts/fiber/record-tests

Error:

SyntaxError: Unexpected token {

On Line: https://github.com/facebook/react/blob/master/scripts/fiber/record-tests#L83

@aweary
Copy link
Contributor

aweary commented Apr 17, 2017

Thanks @abhaynikam, looks like we're using object destructuring which will cause this script to fail in earlier versions on Node. We'll either need to bump up the minimum supported version for development or update the script.

cc @gaearon which of those sounds preferable to you guys?

@aweary aweary requested a review from gaearon April 18, 2017 14:48
@abhaynikam
Copy link
Contributor Author

Thanks for looking at it @aweary 👍

@gaearon
Copy link
Collaborator

gaearon commented Apr 19, 2017

I’m OK with bumping the minimal required version (independent of this PR).

@aweary aweary merged commit 5518bd4 into facebook:master Apr 21, 2017
@gaearon
Copy link
Collaborator

gaearon commented Apr 21, 2017

I would maybe add "It will be ignored." for clarity to the warning. Otherwise it's not clear what the behavior is. Wanna do a followup PR?

@abhaynikam
Copy link
Contributor Author

@gaearon : I will update the warning message in the follow up PR.

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

Successfully merging this pull request may close these issues.

4 participants