TypeError: Cannot read property 'value' of null
See original GitHub issueTell us about your environment
- ESLint Version: v4.15.0
- Node Version: v8.9.4
- npm Version: 5.6.0
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint
Please show your full configuration:
Configuration
module.exports = {
parser: "babel-eslint",
rules : {
'arrow-body-style' : ['warn', 'as-needed'],
},
};
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
test = () => { return }
./node_modules/.bin/eslint FILE
What did you expect to happen?
Eslint to lint the file
What actually happened? Please include the actual, raw output from ESLint.
Error received TypeError: Cannot read property 'value' of null
Cannot read property 'value' of null
TypeError: Cannot read property 'value' of null
at Object.isOpeningBraceToken (./node_modules/eslint/lib/ast-utils.js:354:18)
at validate (./node_modules/eslint/lib/rules/arrow-body-style.js:119:41)
at listeners.(anonymous function).forEach.listener (./node_modules/eslint/lib/util/safe-emitter.js:47:58)
at Array.forEach (<anonymous>)
at Object.emit (./node_modules/eslint/lib/util/safe-emitter.js:47:38)
at NodeEventGenerator.applySelector (./node_modules/eslint/lib/util/node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (./node_modules/eslint/lib/util/node-event-generator.js:280:22)
at NodeEventGenerator.leaveNode (./node_modules/eslint/lib/util/node-event-generator.js:303:14)
at CodePathAnalyzer.leaveNode (./node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:630:23)
at Traverser.leave [as _leave] (./node_modules/eslint/lib/linter.js:1001:32)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'value' of null
I'm getting error in this code, I'm trying to do an event where in when the page is load, it will do the...
Read more >Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >How to deal with TypeError: cannot read properties of null
While coding in Javascript, you must have at least once received a Type Error which has the message “cannot read properties of null”....
Read more >"Cannot read property 'value' of null" while linting · Issue #13394
ESLint: 7.1.0 TypeError: Cannot read property 'value' of null Occurred while linting /Bot/Swan-dev/src/SwanClient.js:74 at ...
Read more >Uncaught TypeError Cannot read property value of null
Uncaught TypeError Cannot read property value of null ... $(document).ready(function(){ var str = document.getElementById("cal_preview").value; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Getting exactly this error with following: .eslintrc
.babelrc
dependencies
If this is still happening with the latest version of ESLint, may you please open a new issue? Thanks!