반응형
해결법
1. module을 설치할 때 --save-dev를 끝에 붙혀 설치한다.
2. ESLint 설정파일에 다음과 같은 코드를 추가해준다.
module.exports = {
"rules": {
"import/no-extraneous-dependencies": [
"error",
{"devDependencies": true}
]
},
};
참고한 블로그)
https://bobbyhadz.com/blog/eslint-should-be-listed-in-projects-dependencies-not-devdependencies
'X' should be listed in the project's dependencies, not devDependencies | bobbyhadz
A step-by-step guide on how to solve the ESlint error 'X' should be listed in the project's dependencies, not devDependencies.
bobbyhadz.com
반응형