-
-
Notifications
You must be signed in to change notification settings - Fork 209
regression v8.2.2: optional chained properties reported as undefined #595
Comments
I approached same issue however I am using "babel-eslint": "^8.2.1" together with "@babel/plugin-proposal-optional-chaining": "^7.0.0-beta.40". @dnalborczyk could you please tell me what babel plugin you are using? Thanks in advance. |
I'm facing the same issue. Thanks for your great work ;) |
I am seeing this too. Downgrading back to |
Ref: babel/babel#7288 We need to now handle Added this to my TODO list if no one gets to it first! |
@existentialism babel/babel#7288 has been resolved, does this mean this can be fixed? |
@julien-f yes, my reference to it was more that it is the cause of the issue, not that I was waiting for it to land. Sorry for not being clear! |
Not a surprise given the state of discussions, but just to prevent other from having to test it:
|
I downgrade |
I'm using:
And I having the same issue here. Have someone found how to solver that? |
hours on this... downgrading to 8.2.1 works for me. Thanks |
It seems like this should be fixed once the babylon dep ( Should be a pretty easy bump, is anyone working on this already (@hzoo?) |
@hansonw that alone doesn't seem to fix it. I just tried by installing and linking |
In fact, downgrading to 8.2.1 have worked. Any idea when this issue will be fixed in next releases? |
@lehni have you tried with |
I'm seeing it with |
@richardgirges Have you seen with |
Even downgrading to |
We need the see your .babelrc and .eslintrc, at least. |
Downgraded to 8.2.1 and I got rid of the 'undefined' errors. Now it seems to be expecting a ternary (probably due to the '?'). Here are my dependencies
My .babelrc and .eslintrc, respectively
|
@brneto {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
],
"sourceMaps": "inline",
"plugins": [
"@babel/plugin-proposal-optional-chaining",
"import-glob"
]
}
{
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {...}
} |
@LennyPenny Are you importing |
@existentialism I guess I got to it first. Can you please take a look at #630 where I put a fix for this? This is the last thing we need in order to roll out this at Facebook. Thanks! |
@brneto I'm using node with the latest babel. I never needed |
Unfortunately we're not out of the woods yet: #643 |
@lehni What is the process of helping with this? I'd like to get to a point that I can use optional chaining with eslint and cra@next, but I'm not sure how to plug in to help. |
@jlaustill I don't know! I haven't been involved in fixing those issues, just been observing them and pointing them out. |
even with assigments this error gets thrown using babel-eslint 9.0.0 final downgrading to 8.2.1 solves it. |
it appears that v8.2.2 is reporting optional chained properties as undefined (works with v8.2.1)
The text was updated successfully, but these errors were encountered: