webpack app/index.js dist/bundle.js 에러

20.02.29 21:53 작성 조회수 180

1

Hash: b211197d852a06714d7a

Version: webpack 4.41.5

Time: 45ms

Built at: 02/29/2020 9:52:44 PM

 1 asset

Entrypoint main = main.js

[0] multi app/index.js dist/bundle.js 40 bytes {0} [built]

WARNING in configuration

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

duction' 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 multi app/index.js dist/bundle.js

Module not found: Error: Can't resolve 'app/index.js' in '/Users/yun-ali/Desktop/LearnWebpack-master'

 @ multi app/index.js dist/bundle.js main[0]

ERROR in multi app/index.js dist/bundle.js

Module not found: Error: Can't resolve 'dist/bundle.js' in '/Users/yun-ali/Desktop/LearnWebpack-master'

 @ multi app/index.js dist/bundle.js main[1]

답변 1

답변을 작성해보세요.

0

안녕하세요 윤희님~ 지금 웹팩 명령어 실행하신 위치가 올바르지 않은 것 같아요. 웹팩 맨 처음 튜토리얼을 학습하시고 계신다면 getting-started 등의 폴더로 이동해서 명령어를 실행하셔야 할 것 같습니다 :)