• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

checker.emitFiles is not a function

22.09.24 00:55 작성 조회수 212

0

npm run build를 했더니 밑과 같은 에러가 뜹니다.. 어떻게 해야하나요 ㅜ

 

[webpack-cli] Failed to load 'C:\Users\JW\slack_front\alecture\webpack.config.ts' config

[webpack-cli] TypeError: checker.emitFiles is not a function

at compile (C:\Users\JW\slack_front\alecture\node_modules\typescript-register\index.js:132:26)

at Object.req (C:\Users\JW\slack_front\alecture\node_modules\typescript-register\index.js:29:9)

at Module.load (node:internal/modules/cjs/loader:1004:32)

at Function.Module._load (node:internal/modules/cjs/loader:839:12)

at Module.require (node:internal/modules/cjs/loader:1028:19)

at require (node:internal/modules/cjs/helpers:102:18)

at WebpackCLI.tryRequireThenImport (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:204:22)

at loadConfigByPath (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1404:38)

at WebpackCLI.loadConfig (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1510:44)

at WebpackCLI.createCompiler (C:\Users\JW\slack_front\alecture\node_modules\webpack-cli\lib\webpack-cli.js:1785:33)

답변 1

답변을 작성해보세요.

1

npm update 를 해서 최신으로 업데이트해보세요. npm run build 명령어는 뭘로 하셨나요?

slack efub님의 프로필

slack efub

질문자

2022.09.24

명령어 세개 중에 두개를 지웠더니 해결되었습니다 감사합니다 ㅜㅜ