강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

terecal님의 프로필 이미지
terecal

작성한 질문수

웹 게임을 만들며 배우는 React

2-5. 웹팩으로 빌드하기

npx webpack 하면 에러가 발생해여

작성

·

581

0

 

npx webpack 하면 

 

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\react_game_prac2'

 

이런 에러가 발생하는데 혹시 이유를 아시나여 

 

알려주시면 감사여 ~!

답변 5

1

terecal님의 프로필 이미지
terecal
질문자

파일 이름을 잘못쓴게 에러 원인 같아여webpack.conifig.js로 해놨더라구여 글씨를 작게해놔서 못본것 같아여^^;

바벨코어도 설치했어여 ~! (이것때문에 해결된걸까여;) 파일 이름을 바꾸고 다시 npm run dev를 실행하니까 제대로 실행된거 같아여 감사합니다 ~! 

 

저도 이 문제로 계속 찾아보니 오타문제였어요 ㅋㅋ ㅠㅠㅠ... 덕분에 작동시켰습니다

0

terecal님의 프로필 이미지
terecal
질문자

 

아녀 npm run dev 에러 발생해여 

 

C:\react_game_prac2>npm run dev

npm WARN npm npm does not support Node.js v10.16.0

npm WARN npm You should probably upgrade to a newer version of node as we

npm WARN npm can't make any promises that npm will work with this version.

npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.

npm WARN npm You can find the latest version at https://nodejs.org/

 

> lecture@1.0.0 dev C:\react_game_prac2

> webpack

 

 

Insufficient number of arguments or no entry found.

Alternatively, run 'webpack(-cli) --help' for usage info.

 

Hash: 546a27d06ef202a631d1

Version: webpack 4.37.0

Time: 55ms

Built at: 2019-07-25 5:33:59 PM

 

WARNING in configuration

The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.

You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

 

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\react_game_prac2'

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! lecture@1.0.0 dev: `webpack`

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the lecture@1.0.0 dev 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:

npm ERR!     C:\Users\hyunsepk\AppData\Roaming\npm-cache\_logs\2019-07-25T08_33_59_114Z-debug.log

 

C:\react_game_prac2>npx webpack

 

Insufficient number of arguments or no entry found.

Alternatively, run 'webpack(-cli) --help' for usage info.

 

Hash: 546a27d06ef202a631d1

Version: webpack 4.37.0

Time: 57ms

Built at: 2019-07-25 5:34:03 PM

 

WARNING in configuration

The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.

You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

 

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\react_game_prac2' 

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

npm run dev를 하면 제대로 실행되죠? npx webpack하는 경우 웹팩이 경로를 제대로 못 잡는 것 같습니다.

0

terecal님의 프로필 이미지
terecal
질문자

네 근데 src 폴더가 없냐고 묻는 이유도 몰겠어여 원래 있어야 되나여?  git hub 주소는 
https://github.com/hyunsokstar/react_game_prac2

입니다 봐주시면 감사여~!

 

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

C:\react_game_prac2 경로에 src라는 폴더가 없는 것 아닌가요?

terecal님의 프로필 이미지
terecal

작성한 질문수

질문하기