[Error] ESLint is disabled since its execution has not been approved

Yuri Lee·2021년 5월 5일
0

서론

리액트를 다시 공부하려고 vscode 를 사용했는데 다음과 같은 오류가 떴다. 😢

문제

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';

위 코드에서 import 부분에 빨간줄이 뜨면서 다음의 오류가 발생했다.

“ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the approval dialog.”

해결

vscode를 사용하는 경우 eslint 사용을 허가해주어야 한다고 한다. 분명이 허가를 줬었던 것 같은데 .... 암튼 그럴때는 파란전구를 눌러서 뜨는 팝업창에서 allow를 누르면 해결된다.


https://sunmon.github.io/vscode-eslint-prettier-setting/

profile
Step by step goes a long way ✨

0개의 댓글