ํฐ์คํ ๋ฆฌ ๋ทฐ
๐จ JavaScript
[eslint] Failed to load parser 'babel-eslint' declared in 'package.json' Error Handling
10000COW 2022. 12. 19. 12:44728x90
The Reason of this Error
'babel-eslint' has deprecated and it causes this error.
All you have to do is changing parser from deprecated 'babel-eslint' to '@babel/eslint-parser'
Error Solution
1. Open your react file using IDE(For me, VSCode)
2. Find node_modules Directory and you can find eslint-config-react-app / base.js in this directory.
3. You should change parser in module.exports from babel-eslint to @babel/eslint-parser
4. Do 'yarn install' again and 'yarn start' (or npm)
728x90
'๐จ JavaScript' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JavaScript] ํ์ผ ๋ชจ๋ํ(module) (0) | 2022.12.24 |
---|---|
[JavaScript] ์๋ฌ ๋ฒ๋ธ๋ง(Error Bubbling) (0) | 2022.12.24 |
[JavaScript] switch๋ฌธ์ ์ธ์ ์ฐ๋ฉด ์ข์๊น? (0) | 2022.12.20 |
[eslint] Failed to load parser 'babel-eslint' declared in 'package.json' ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ (0) | 2022.12.19 |
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- ๋ฆฌ์กํธ
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- zustand
- ๋ธ๋ผ์ฐ์
- state
- ์๋ฌ
- DOM
- github
- ์๋ฃ๊ตฌ์กฐ
- Browser
- DB
- Context API
- React Query
- leetcode
- ์ ๋ ฌ
- BOJ
- ํจ์
- ์๋ฐ์คํฌ๋ฆฝํธ
- error
- Component
- mdn
- git
- ๊ทธ๋ํ
- useState
- ์๊ณ ๋ฆฌ์ฆ
- ํ์ด์ฌ
- JavaScript
- CSS
- Python
- react
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
๊ธ ๋ณด๊ดํจ
250x250