-
Notifications
You must be signed in to change notification settings - Fork 399

Description
[문제점] :
해당 디렉토리에서 "yarn eject" 명령어 실행 후 ,
서버 구동을 위해 "yarn start" 입력 시 "00 모듈이 없다는" "계속된" 오류 발생
[질문]
yarn eject 하지 않고도, webpack.config.dev.js 변경이 어려운지요,
yarn eject하면 다시 서버 구동(yarn start)이 되지 않습니다.
[내용]
webpack.config.dev.js를 수정하기 위해서
교재처럼 "yarn eject"을 실행 후 config 파일, css파일, app파일을 변경했습니다.
그 이후 변경사항을 확인하려 해당 만든 디렉토리에서
yarn start 명령어"를 입력 시, 에러가 나와서 서버 구동이 안됩니다.
서버가 구동이 안되, P164 그림 9-2를 볼 수 가 없습니다.
교재에서 특별히 특이사항으로 정리된 부분이 없어 질문 남깁니다.
에러 내용처럼 'babel-loader' npm 설치해봤는데,
그 이후로 줄줄이 cannot found module ~~~라고 나옵니다.
yarn eject 후 yarn start 할 경우 발생하는 에러코드 입니다.
babel-loader를 설치하면 그 이후로 계속 무슨무슨 모듈이 없다고 나옵니다.
무슨무슨 : babel-loader-> chalk -> whatwg-fetch
[에러코드]
Error: Cannot find module 'babel-loader'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.resolve (internal/modules/cjs/helpers.js:30:19)
at Object. (/Users/rohkorea_mac/styling-react/config/webpack.config.dev.js:145:29)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/Users/rohkorea_mac/styling-react/scripts/start.js:31:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.