TypeError: __webpack_require__(...) is not a function에러
1333
작성한 질문수 41
babel.config.js
webpack
package.json
에러로그
ERROR in Error: C:\Users\Administrator\Desktop\sumin\lecture-frontend-dev-env/node_modules/core-js/modules/_classof.js?:4
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/modules/_wks.js")('toStringTag'); // ES3 wrong her e
^
TypeError: __webpack_require__(...) is not a function
- _classof.js?:4 eval
[.]/[core-js]/modules/_classof.js?:4:86
- index.html:154 Object../node_modules/core-js/modules/_classof.js
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:154:1
- index.html:22 __webpack_require__
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:22:30
- es6.object.to-string.js?:3 eval
[.]/[core-js]/modules/es6.object.to-string.js?:3:15
- index.html:924 Object../node_modules/core-js/modules/es6.object.to-string.js
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:924:1
- index.html:22 __webpack_require__
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:22:30
- _cof.js?:3 Module.eval
[.]/[core-js]/modules/_cof.js?:3:97
- _cof.js?:12 eval
[.]/[core-js]/modules/_cof.js?:12:30
- index.html:166 Module../node_modules/core-js/modules/_cof.js
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:166:1
- index.html:22 __webpack_require__
C:/Users/Administrator/Desktop/sumin/lecture-frontend-dev-env/src/index.html:22:30
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 1.04 KiB {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 1000 bytes {0} [built]
[./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harmony-module.js 631 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 552 bytes {0} [built]
+ 85 hidden modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! lecture-frontend-dev-env@1.0.0 build: `webpack --progress`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the lecture-frontend-dev-env@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! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-01-21T13_23_59_787Z-debug.log
구글링을 했는데도 뚜렷한 원인을 잘 모르겠습니다..ㅜㅜ
답변 1
지금 시점에서 해당 강의를 듣는 것에 대하여
1
111
3
2025년 기준 번들러 트렌드와 선택 기준이 궁금합니다 (Webpack, Vite, tsup 등)
1
223
1
에러 해결 공유드립니다
1
224
2
webpack 4 버전과 호환되는 플러그인 버전 공유드립니다
1
233
2
eslint
0
380
3
도와주세요!
0
167
2
[수강 중 트러블슈팅 공유] webpack, webpack-cli 버전
1
145
1
질문 an error occurred while loading the image
1
469
1
webpack에서 babel-loader 사용할때 질문
1
150
1
자주 사용하는 플러그인 에서 질문이 있습니다.
1
168
1
eslint no-extra-semi 관련 질문
1
143
1
webpack5 에서 open index.html하는법 + 질문
1
167
1
TypeError: ((process.env.NODE_ENV === "production") && [MiniCssExtractPlugin]) is not iterable
2
301
1
혹시 웹팩 5 내용으로 강의 업데이트는 안되는건가요?
1
371
1
에러없이 png안뜨시는 분들
1
274
1
Error: Cannot find module 'node:crypto'
1
464
1
DefinePlugin 관련; env와 관련하여, (21.06.22 16:15, aloha_jh) 답변포함
1
406
1
깃허브 확인 문의
0
575
1
폴더를 prettier로 돌렸을 때 나오는 에러 구문에 대한 질문
0
405
1
해쉬값과 캐쉬 갱신
1
461
1
Hash 에러 발생
1
2667
2
webpack.config.js에서의 CommonJS방식에 대한 질문
0
831
3
웹팩 버전
0
524
1
웹팩-cli 버전을 명시하지 않으면 왜 에러가 날까요?
0
484
1





