You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prop value with an expression type of BindExpression could not be resolved.
Please file issue to get this fixed immediately.
Error: The prop value with an expression type of BindExpression could not be resolved.
Please file issue to get this fixed immediately.
at Object.extract [as JSXExpressionContainer] (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/values/expressions/index.js:173:11)
at getValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/values/index.js:48:27)
at extractValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/getPropValue.js:24:12)
at getPropValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/getPropValue.js:41:10)
at /Users/tsheaff/Code/private/calm/www/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js:76:95
at Array.some (native)
at EventEmitter.JSXOpeningElement (/Users/tsheaff/Code/private/calm/www/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js:75:52)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:191:7)
at NodeEventGenerator.applySelector (/Users/tsheaff/Code/private/calm/www/node_modules/eslint/lib/util/node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (/Users/tsheaff/Code/private/calm/www/node_modules/eslint/lib/util/node-event-generator.js:294:22)
When I remove the 'parser': 'babel-eslint', line from the config, this crash goes away. However in that case native eslint doesn't recognize the :: and says Parsing error: Unexpected token : (Fatal) It also goes away if the file I'm linting does not use the :: syntax
The :: operator on line this line is the offending one. If I remove that or switch to .bind(this) syntax I don't get the error. I also don't get the error if the :: is not in JSX
The text was updated successfully, but these errors were encountered:
Migrated from babel/babel-eslint#472
I'm using this syntax:
::this.foo()
However, eslint crashes in this case:
Here is my
.eslintrc
:Here are my dependencies:
When I remove the
'parser': 'babel-eslint',
line from the config, this crash goes away. However in that case native eslint doesn't recognize the::
and saysParsing error: Unexpected token : (Fatal)
It also goes away if the file I'm linting does not use the::
syntaxThis mini-repo recreates the error: https://gist.github.com/tsheaff/003685ca6a163fb467a29fb7c70fbf10
The
::
operator on line this line is the offending one. If I remove that or switch to.bind(this)
syntax I don't get the error. I also don't get the error if the::
is not in JSXThe text was updated successfully, but these errors were encountered: