dahye8043
100
2022-01-15 15:15:38 작성 2022-01-15 15:54:49 수정됨
0
58

리액트 배포시 TypeError: MiniCssExtractPlugin is not a constructor 에러가 나요 ㅠ


헤로쿠나 netlify에 배포시 둘다 저런 에러가 나네요 ㅠㅠ 어떻게 해야할까요ㅜㅜ\

웹팩 건들지도 않는데 저러네요 ㅠ



/tmp/build_abe24a50/node_modules/react-scripts/config/webpack.config.js:664
        new MiniCssExtractPlugin({
        ^
TypeError: MiniCssExtractPlugin is not a constructor
    at module.exports (/tmp/build_abe24a50/node_modules/react-scripts/config/webpack.config.js:664:9)
    at Object.<anonymous> (/tmp/build_abe24a50/node_modules/react-scripts/scripts/build.js:58:16)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
0
  • 답변 0

  • 로그인을 하시면 답변을 등록할 수 있습니다.