-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
TypeError: Cannot read property 'parent' of null #1061
Comments
This is unrelated, but you want to use an This looks like there's some kind of code you might be using that eslint-plugin-react's |
Oh for sure, just for this output I did the manual path. It was failing in the same manner using my That helped! Took a bit of playing around, but it turned out that having a multi-line ternary that didn't wrap each possibility on either side of the colon with parenthesis would fail. First one that was breaking it was this block, and once that was fixed it broke again once it got down to this block. All good now! Not sure if that is by design, as the previous version could handle it. If it is, this should be good to close, but otherwise I can rename it as a bug that ambiguous multiline ternary blocks break parsing. Thanks @ljharb! |
Those links now show the same block - if you could provide the code that broke, it's definitely a bug we should be able to fix. |
Oops, got the second one updated. |
maybe it can be helpful, for me it's throwing when using template string <Route
path="/dashboard"
render={props => <Redirect to={`/?login&next=${props.location.pathname}`} />}
/> |
After updating using
eslint-config-airbnb
's instructions running my tests result in the following error (manually pathed to leave out other pieces of the test stack).tracelog
package.json
environment
I've had no luck searching for this issue, so resulted in submitting this issue. Any ideas? Dropping the
--ext .js,.jsx
works, but will only scan.js
files.The text was updated successfully, but these errors were encountered: