본문 바로가기
React/ETC Error

[eslint error] Warning: React version not specified in eslint-plugin-react settings.

by fefe94 2022. 1. 29.

 

eslint 실행 중 에러가 났다.

에러 문구는 다음과 같다.

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .

터미널 에러 문구

구글링 결과 해결 방법 두가지가 있는데

 

.eslintrc.js파일에서 

 

  settings: {
    react: {
      version: 'detect',
    },
  },

 

또는

 

  settings: {
    react: {
      version: '999.999.999',
    },
  },

 

를 추가하여 해결했다.

 


Reference

댓글