inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

프론트엔드 개발자를 위한 웹팩

웹팩 시작하기 튜토리얼 파트 1 - 웹팩 적용 전

이 에러가 계속 뜨는데 어떻게 해야할까요? ㅠ

385

SuYun Lee

작성한 질문수 6

1

아래와 같은 방법을 써봤는데 안되더라구요 ㅠ

오류 메세지

Insufficient number of arguments or no entry found.

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

Hash: 450784a2e0438262e127

Version: webpack 4.44.2

Time: 31ms

Built at: 2020-09-20 9:48:22 ├F10: 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 enabledefaults 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 '/Users/Eric/study/webpack/npm/getting-started'

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! getting-started@1.0.0 build: `webpack`

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the getting-started@1.0.0 build 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!     /Users/Eric/.npm/_logs/2020-09-20T12_48_22_174Z-debug.log

웹팩

답변 2

0

SuYun Lee

안녕하세요~ webpack 파일을 만들어서 진행하면 되고 웹팩 파일 없이 진행하면 오류가 났습니다. 일단 진행하기위해 webpack 파일 만들어서 실행했어요~

0

캡틴판교

안녕하세요 수연님, 답변이 너무 늦어져 죄송합니다 :)

npm i 명령어를 치셨을 때 위와 같은 에러가 나는 건가요? 에러 메시지에서는 웹팩 빌드 명령어를 실행했을 때 웹팩 빌드 파일 대상 경로가 잘못 되었다고 나오는 것 같은데.. 한번 확인해보시고 알려주세요 :)

HTMLWebpackPlugin 사용한 webpack.config.js의 빌드 결과 index.html

1

467

1

인프런 캡틴판교님 강의 들을 순서 알고 싶습니다.

1

476

2

바벨없이 import 구문을 빌드한 의도파악하기

1

511

2

chunkhash 사용

2

482

1

pm install gulp --global

1

514

1

이런질문도 괜찮나요?

1

498

1

__dirname 질문입니당

1

683

2

플러그인 관련 질문있습니다.

1

285

1

build 후 생성된 bundle.js 가 너무 간략합니다

1

1266

1

웹팩데브서버에 대해 궁금한점

1

299

1

devServer 질문

1

350

1

웹팩 로더 버전 관리

1

448

1

devDependencies와 build

1

381

1

webpack-dev-server 실행시 index.html 안쓰는 법

1

457

1

webpack-dev-server 실행 후 매번 업데이트시 console 창 기본 메세지 숨길 수 있을까요?

1

951

1

웹팩의 등장배경 관련해서 문의드립니다!

1

317

1

배포시 질문

1

285

1

--output=public/output.js 오류 문의

1

768

1

npm i vue -D 설치시 다른 여러 폴더들이 생성됩니다.

1

422

2

main.js태그

1

245

1

module 문법 질문.

1

264

1

htmlWebpackPlugin 질문

2

238

1

entry,output 파일 경로 설정 질문.

1

220

1

웹팩 이미지로더 질문

1

179

1