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
TypeError: Cannot read property 'toLowerCase' of undefined
Occurred while linting $PROJECT_DIR/$COMPONENT_FILE:$LINE_NUMBER
at $PROJECT_DIR/node_modules/eslint-plugin-react/lib/rules/no-typos.js:181:50
at Array.forEach (<anonymous>)
at reportErrorIfLifecycleMethodCasingTypo ($PROJECT_DIR/node_modules/eslint-plugin-react/lib/rules/no-typos.js:180:25)
at Object.MethodDefinition ($PROJECT_DIR/node_modules/eslint-plugin-react/lib/rules/no-typos.js:256:9)
at updatedRuleInstructions.<computed> ($PROJECT_DIR/node_modules/eslint-plugin-react/lib/util/Components.js:1016:45)
at $PROJECT_DIR/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit ($PROJECT_DIR/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector ($PROJECT_DIR/node_modules/eslint/lib/linter/node-event-generator.js:293:26)
at NodeEventGenerator.applySelectors ($PROJECT_DIR/node_modules/eslint/lib/linter/node-event-generator.js:322:22)
Reproducible code
importReactfrom'react';exportdefaultclassEditorextendsReact.Component{
#somethingPrivate(){// ...}render(){const{ value =''}=this.props;return(<textarea>{value}</textarea>);}}
Situation description
The whole ESLint watching process has crashed by only just make the method private; write # symbol.
The text was updated successfully, but these errors were encountered:
Environments
14.17.3
7.32.0
eslint-plugin-react
7.24.0
Error stack
Reproducible code
Situation description
The whole ESLint watching process has crashed by only just make the method private; write
#
symbol.The text was updated successfully, but these errors were encountered: