inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

따라하며 배우는 도커와 CI환경 [2023.11 업데이트]

운영환경 도커 이미지를 위한 Dockerfile 작성하기

TypeError: MiniCssExtractPlugin is not a constructor 오류 공유

576

NoName

작성한 질문수 5

0

docker build . 

npm run build .

명령어 실행 시 

 

 

 > [builder 7/7] RUN npm run build:                                                                                                                                                                            

#13 0.734                                                                                                                                                                                                      

#13 0.734 > docker-react-app@0.1.0 build

#13 0.734 > react-scripts build

#13 0.734 

#13 1.721 /usr/src/app/node_modules/react-scripts/config/webpack.config.js:664

#13 1.721         new MiniCssExtractPlugin({

#13 1.721         ^

#13 1.721 

#13 1.721 TypeError: MiniCssExtractPlugin is not a constructor

#13 1.721     at module.exports (/usr/src/app/node_modules/react-scripts/config/webpack.config.js:664:9)

#13 1.721     at Object.<anonymous> (/usr/src/app/node_modules/react-scripts/scripts/build.js:58:16)

#13 1.721     at Module._compile (node:internal/modules/cjs/loader:1097:14)

#13 1.721     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)

#13 1.721     at Module.load (node:internal/modules/cjs/loader:975:32)

#13 1.721     at Function.Module._load (node:internal/modules/cjs/loader:822:12)

#13 1.721     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)

#13 1.721     at node:internal/main/run_main_module:17:47

#13 1.721 

#13 1.721 Node.js v17.3.1

와 같은 오류 나시는분들

아래 명령어로 해결하시면 됩니다.

노드 개발자가 아니라 정확한 원인은 잘 모르겠으나 버전 문제로 보입니다!

npm i -D --save-exact mini-css-extract-plugin@2.4.5

docker aws github travis-ci cicd 데이터 엔지니어링

답변 1

0

John Ahn

공유해주셔서 감사합니다 !!!!

Docker Containers간 통신 할 때 나타나는 에러 강의 질문

0

94

1

WINDOW + Vite를 사용하여 소스 코드 변경이 반영되지 않는 현상

0

100

1

도커 컨테이너 끼리 SSL 통신 시 문제가 생깁니다..

0

232

1

도표 강의 자료 사용이 불가합니다. (권한 문제)

0

153

1

Docker compose 관련 공유

0

152

1

트레비스가 유료화가 되어 테스트가 어려워 챕터8에서 고민중입니다.

0

84

1

강사님 혹시 vscode 어떤 테마 쓰시나요..?

0

306

1

The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist.

0

112

1

travis ci가 이제 유료화가 된 것 같습니다;;;

0

220

2

docker-compose up 에러 공유 드립니다

0

297

1

Elastic Beanstalk에서 도메인 클릭시 react 이미지가 안나오고 다른 화면이 나오는데

0

180

1

도커 빌드 시간이 너무 오래걸려요..

0

1087

2

docker-compose down 이후에도 containers에 redis가 남아 있는 이유

0

172

1

도커 볼륨이 작동이 안되는것 같아서 질문드립니다!

0

223

2

docker-compose 가 Docker Desktop 에서 빠진건가요? command not found 라고 뜨네요

0

287

1

Error response from daemon: The system cannot find the file specified.

0

227

1

draw.io 오류

0

680

1

Docker Volume 오류(reference, lowercase)

0

569

1

[섹션3 - 내가 만든 이미지 기억하기 쉬운 이름 주기] 네이밍/태그 에러

0

232

1

axios오류 문의드립니다!

0

345

1

node.js version

0

494

1

안녕하세요 마지막 강의 질문 있습니다.

0

440

1

Deploy를 계속 실패합니다.

3

1397

4

TravisCI에서 계속 에러가 납니다....

0

364

1