inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

웹 게임을 만들며 배우는 React

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

npx webpack 하면 에러가 발생해여

583

terecal

작성한 질문수 162

0

 

npx webpack 하면 

 

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

 

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

 

알려주시면 감사여 ~!

react

답변 5

1

terecal

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

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

 

0

최유진

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

0

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

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

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

 

0

제로초(조현영)

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

npm run dev 실행 시 포트가 안뜨는 문제

0

204

2

timeouts.current를 useEffect 의 input값으로 넣었을때

0

88

2

렌더링 테스트 코드 (Hooks)

0

80

1

Cannot find package 'react-refesh' 이런 에러 뜨시는 분들 보세요.

0

149

1

해당 에러 뜨는 분들 보세요. "Uncaught TypeError: ReactDom.createRoot is not a function"

1

191

1

강사님 레포지토리에서 코드 복사 시 master 브랜치 말고 react18 브랜치꺼 복붙하세요ㅠㅠ

0

95

1

useMemo와 useCallback 사용 시기

0

207

2

onRightClickTd가 작동을 하지 않습니다.

0

226

1

action.type 불러오는 방식

0

222

2

onClickRedo 질문

0

172

1

const Try = require(./Try) 빨간줄

0

248

1

npx webpack 실행시

0

313

1

지뢰찾기 강좌에서 빈칸들 한번에 열기 파트에서 여쭤보고싶은부분이 있어서 글 올립니다.

0

235

1

강좌에서 다루지 않은 기능들은 어떻게 학습하면 좋을까요?

0

311

1

react devtool이 enable 않됩니다.

0

531

2

React 랜더링이 되지 않습니다.

0

412

2

비동기로 동작하는 setState에 대해서

0

331

1

npm run dev 할 때 에러발생

0

480

2

memo, PureComponenet, shouldComponentUpdate 관련 질문

0

206

1

devMiddleware의 필요성

0

352

1

리액트에서 화살표 함수를 사용해야하는 이유

0

935

2

path.join관련질문

0

282

2

2-9. 웹팩 데브 서버와 핫 리로딩 설치과정 시 에러

0

374

1

next.js 에서 이와 비슷한 예제를 돌리고있는데 react랑 달라서 질문 드립니

1

491

4