Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.1 CSS MODULE #3

Closed
SH5H opened this issue Aug 7, 2018 · 2 comments
Closed

9.1 CSS MODULE #3

SH5H opened this issue Aug 7, 2018 · 2 comments

Comments

@SH5H
Copy link

SH5H commented Aug 7, 2018

yarn eject시

d:\reactPractice\styling-react-test2>npm start

styling-react-test2@0.1.0 start d:\reactPractice\styling-react-test2
node scripts/start.js

module.js:549
throw err;
^

Error: Cannot find module 'babel-loader'
at Function.Module._resolveFilename (module.js:547:15)
at Function.resolve (internal/module.js:18:19)
at Object. (d:\reactPractice\styling-react-test2\config\webpack.config.dev.js:145:29)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (d:\reactPractice\styling-react-test2\scripts\start.js:31:16)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! styling-react-test2@0.1.0 start: node scripts/start.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the styling-react-test2@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

이렇게 babel_loader를 불러오지 못하는 문제가 있어서
yarn add babel-loader 로 따로 바벨 로더를 추가해줬습니다

@velopert
Copy link
Owner

velopert commented Aug 7, 2018

이건 yarn 쪽에 문제라고 하네요.

facebook/create-react-app#4433

create-react-app에서 따로 고칠 계획은 없는것으로 보이는데 지금으로선 yarn 을 한번 더 입력하는게 유일한솔루션인듯합니다. 1.0.0 버전 전에선 잘 된다는데...

조금 더 지켜보고 이 GitHub 저장소의 README 쪽에 포함시켜놓겠습니다.

@velopert velopert closed this as completed Aug 7, 2018
@gitpcu
Copy link

gitpcu commented Aug 17, 2018

저도 같은 상황인데 한번 해보겠습니다!

ooyuo added a commit to ooyuo/learning-react that referenced this issue Apr 7, 2020
linuxul added a commit to linuxul/learning-react that referenced this issue Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants