2019. 11. 13. 09:50

[IntelliJ] TypeError: this.cliEngine is not a constructor

webstorm에서 eslint 적용 후 

TypeError: this.cliEngine is not a constructor

위와 같은 에러 발생



출처: https://tristan91.tistory.com/516 [개발모음집]

webstorm에서 eslint 적용 후 

TypeError: this.cliEngine is not a constructor

위와 같은 에러 발생



출처: https://tristan91.tistory.com/516 [개발모음집]

webstorm에서 eslint 적용 후 

TypeError: this.cliEngine is not a constructor

위와 같은 에러 발생



출처: https://tristan91.tistory.com/516 [개발모음집]

IntelliJ에서 eslint 사용 시 아래와 같은 오류가 발생하는 경우.

TypeError: this.cliEngine is not a constructor


문제는 IntelliJ의 node(eslint) 버전이 낮은 버전(eslint v5)에 맞춰져 있는데 설치된 버전(eslint v6)이 높아서 발생함


IntelliJ를 2019.1.2 이상으로 업데이트 하던지 아래 방법을 사용할 것


1. node_modules/eslint 와 eslint*에 관련된 디렉토리 삭제


2. package.json 에서 eslinkt 버전을 ^5.16.0 으로 변경한 후 npm install을 실행