This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Parsing error: node.attributes.map is not a function #275
Closed
Description
What version of TypeScript are you using?
"typescript": "2.3.2"
What version of typescript-eslint-parser
are you using?
"typescript-eslint-parser": "^2.1.0"
What code were you trying to parse?
import * as React from 'react';
import { render } from 'react-dom';
const root = document.getElementById('root');
render(<div></div>, root);
What did you expect to happen?
Linting output
What happened?
0:0 error Parsing error: node.attributes.map is not a function
.eslintrc.js made from eslint --init and choosing airbnb and react
module.exports = {
"extends": "airbnb",
"parser": "typescript-eslint-parser",
"plugins": [
"react",
"jsx-a11y",
"import"
]
};
Trying to understand what this error is about and how to fix it. Any help would be greatly appreciated.