亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

[email protected] build: `webpack --config webpack.config.js`

D:\miProject>npm run build


> [email protected] build D:\miProject

> webpack --config webpack.config.js


D:\miProject\node_modules\[email protected]@webpack-cli\bin\cli.js:93

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? throw err;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^


ReferenceError: _dirname is not defined

? ? at Object.<anonymous> (D:\miProject\webpack.config.js:7:27)

? ? at Module._compile (D:\miProject\node_modules\[email protected]@v8-compile-cache\v8-compile-cache.js:194:30)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)

? ? at Module.load (internal/modules/cjs/loader.js:1049:32)

? ? at Function.Module._load (internal/modules/cjs/loader.js:937:14)

? ? at Module.require (internal/modules/cjs/loader.js:1089:19)

? ? at require (D:\miProject\node_modules\[email protected]@v8-compile-cache\v8-compile-cache.js:161:20)

? ? at WEBPACK_OPTIONS (D:\miProject\node_modules\[email protected]@webpack-cli\bin\utils\convert-argv.js:114:13)

? ? at requireConfig (D:\miProject\node_modules\[email protected]@webpack-cli\bin\utils\convert-argv.js:116:6)

? ? at D:\miProject\node_modules\[email protected]@webpack-cli\bin\utils\convert-argv.js:123:17

? ? at Array.forEach (<anonymous>)

? ? at module.exports (D:\miProject\node_modules\[email protected]@webpack-cli\bin\utils\convert-argv.js:121:15)

? ? at D:\miProject\node_modules\[email protected]@webpack-cli\bin\cli.js:71:45

? ? at Object.parse (D:\miProject\node_modules\[email protected]@yargs\yargs.js:576:18)

? ? at D:\miProject\node_modules\[email protected]@webpack-cli\bin\cli.js:49:8

? ? at Object.<anonymous> (D:\miProject\node_modules\[email protected]@webpack-cli\bin\cli.js:366:3)

? ? at Module._compile (internal/modules/cjs/loader.js:1200:30)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)

? ? at Module.load (internal/modules/cjs/loader.js:1049:32)

? ? at Function.Module._load (internal/modules/cjs/loader.js:937:14)

? ? at Module.require (internal/modules/cjs/loader.js:1089:19)

? ? at require (internal/modules/cjs/helpers.js:73:18)

? ? at Object.<anonymous> (D:\miProject\node_modules\[email protected]@webpack\bin\webpack.js:156:2)

? ? at Module._compile (internal/modules/cjs/loader.js:1200:30)

? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)

? ? at Module.load (internal/modules/cjs/loader.js:1049:32)

? ? at Function.Module._load (internal/modules/cjs/loader.js:937:14)

? ? at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)

? ? at internal/main/run_main_module.js:17:47

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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\msi\AppData\Roaming\npm-cache\_logs\2020-07-07T07_43_53_534Z-debug.log


D:\miProject>


正在回答

1 回答

試試__dirname,少了一個下劃線

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
TypeScript封裝播放器組件
  • 參與學習       8062    人
  • 解答問題       60    個

手把手教大家進行需求分析、組織代碼,并使用組件化編寫高性能代碼。

進入課程

[email protected] build: `webpack --config webpack.config.js`

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號