작성
·
262
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)
명령어 세개 중에 두개를 지웠더니 해결되었습니다 감사합니다 ㅜㅜ