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

Fix linting error when using rest props #7754

Merged
merged 1 commit into from Oct 1, 2019

Conversation

alexandrtovmach
Copy link
Contributor

@alexandrtovmach alexandrtovmach commented Sep 30, 2019

Fixes #7753 that's affected by breaking change in webpack-contrib/eslint-loader#294

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@alexandrtovmach
Copy link
Contributor Author

@ianschmitz Seems like build fails... again. Could you restart?

@ianschmitz
Copy link
Contributor

@ianschmitz Seems like build fails... again. Could you restart?

I triggered a new build, but it seems to still be failing for the same reason.

@alexandrtovmach
Copy link
Contributor Author

This is Azure pipeline issues I think. You can try to run one-by-one to reduce service load

@alexandrtovmach
Copy link
Contributor Author

This fails not related to my changes it's 100% sure

@ianschmitz
Copy link
Contributor

ianschmitz commented Sep 30, 2019

The KitchenSink/KitchenSinkEject suites on Linux have the same errors when running locally. It's not a pipelines issue. You can repro using yarn e2e:docker --test-suite kitchensink.

I know people want a fix, but i don't feel comfortable merging this as-is because it looks like there may be other rest/spread issues when linting still.

Would you be able to debug this @alexandrtovmach?

@alexandrtovmach
Copy link
Contributor Author

@ianschmitz I can take a look just tomorrow morning (almost midnight for me now) so if someone else can investigate in it quicker - go ahead)

If not, I'll fix it in 10 hours

@ianschmitz ianschmitz closed this Oct 1, 2019
@ianschmitz ianschmitz reopened this Oct 1, 2019
@ianschmitz
Copy link
Contributor

ianschmitz commented Oct 1, 2019

@alexandrtovmach it seems to have sorted itself. Tests are now passing on my local machine and in CI. Thanks!

@ianschmitz ianschmitz changed the title Updated eslint-loader version Fix linting error when using rest props Oct 1, 2019
@ianschmitz ianschmitz merged commit 6f7b371 into facebook:master Oct 1, 2019
@chrisreedtech
Copy link

chrisreedtech commented Oct 1, 2019

@ianschmitz
I'm still having this issue. Is there a certain version of a package that I might have listed in my package.json that could be causing this?

This is my package.json.
`

{
"name": "ui",
"version": "0.0.1",
"private": true,
"proxy": "http://redacted:8000",
"dependencies": {
"react": "16.9.0",
"react-dom": "16.9.0",
"react-scripts": "3.1.2",
"@material-ui/core": "latest",
"axios": "0.19.0",
"react-router-dom": "5.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}

`

@kentcdodds
Copy link
Contributor

@chrisreedio, I believe it's because this hasn't been released yet. Hopefully it will be soon. You can check the npm page to know when the last release was (which was 11 days ago at the time of this writing).

Thanks to @alexandrtovmach for the PR and @ianschmitz for merging 👏

@alexandrtovmach
Copy link
Contributor Author

@ianschmitz Yeah, as I said the problem is not related to my changes =) So it's merged, but when it'll be live? I can't find any estimates for 3.1.3

@alexandrtovmach alexandrtovmach deleted the fix/#7753 branch October 1, 2019 06:03
@chrisreedtech
Copy link

Is there a work around? I tried forcing react-scripts@3.0.1 and I still have the issue. Somehow this issue broke my builds. Which I found odd given I was specifying exact versions.

Appreciate your time!

@alexandrtovmach
Copy link
Contributor Author

@chrisreedio My fix is not available now, so you need to use one of temporary solutions:
#7753 (comment)
#7753 (comment)

@chrisreedtech
Copy link

@alexandrtovmach Thank you!

@lock lock bot locked and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read property 'forEach' of undefined if object destructing with rest props is used
5 participants