• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

eslint 가 적용되지 않아요

19.08.30 09:37 작성 조회수 136

0

안녕하세요 eslint가 정상적으로 적용되지 않아 문의드립니다

[Error - 2:12:45 PM]
Failed to load plugin 'import' declared in 'front/.eslintrc': Cannot find module 'eslint-plugin-import'
Require stack:
- /Users/^^/Documents/vscode_workspace/react-nodebird/__placeholder__.js
Happened while validating /Users/^^/Documents/vscode_workspace/react-nodebird/front/components/LoginForm.js
This can happen for a couple of reasons:
1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).
2. If ESLint is installed globally, then make sure 'eslint-plugin-import' is installed globally as well.
3. If ESLint is installed locally, then 'eslint-plugin-import' isn't installed correctly.

Consider running eslint --debug /Users/^^/Documents/vscode_workspace/react-nodebird/front/components/
LoginForm.js from a terminal to obtain a trace about the configuration files used.

위와 같은 오류가 vscode에서 발생하여 .eslintrc 설정에서 plugins에 import를 주석처리하면 hooks로 변경되어 똑같은 오류가 올라옵니다  eslint 전역으로도 설치해보고 했는데 계속 그러네요 ㅠㅠ

 
 

 

답변 1

답변을 작성해보세요.

0

전역으로도 설치해보시고, 로컬로도 설치해보세요. vscode가 어떤 환경에서 eslint를 실행하는지를 모르겠네요.