Web/React
Parsing error: Cannot read property 'name' of undefined 에러 해결하기
bugtype
2020. 4. 22. 17:12
export \* from './BoardRow';
이런식으로 전체를 export하면 에러를 발생시키는 경우가 있다.
Parsing error: Cannot read property 'name' of undefined
에러 해결 방법
1번 ts 버젼이 3.7이면 eslint 2.23으로 다운그레이드 한다.
"@typescript-eslint/eslint-plugin": "^2.23.0",
"@typescript-eslint/parser": "^2.23.0",
2번 ts를 3.8로 업데이트 한다.
참고
https://github.com/typescript-eslint/typescript-eslint/issues/1746