第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

webpack hello.js hello.bundle.js 報(bào)錯(cuò)


$ webpack hello.js hello.bundle.js

C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:244

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

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


TypeError: Cannot read property 'length' of undefined

? ? at processConfiguredOptions (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:160:44)

? ? at module.exports (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:148:10)

? ? at yargs.parse (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:241:39)

? ? at Object.parse (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\_yargs@11.1.0@yargs\yargs.js:552:18)

? ? at C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:219:8

? ? at Object.<anonymous> (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:530:3)

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

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

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

? ? at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

? ? at Function.Module._load (internal/modules/cjs/loader.js:585:3)

? ? at Module.require (internal/modules/cjs/loader.js:692:17)

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

? ? at runCli (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:54:2)

? ? at Object.<anonymous> (C:\Users\yu\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:147:2)

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

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

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

? ? at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

? ? at Function.Module._load (internal/modules/cjs/loader.js:585:3)

? ? at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)

? ? at startup (internal/bootstrap/node.js:283:19)

? ? at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)


正在回答

2 回答

?webpack ./hello.js --output-path ./ --output-filename bundle.js --mode development

搜索

復(fù)制

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

weixin_慕斯1009030

這個(gè)是5.64.1版本的命令
2021-11-16 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_甲骨文_3

你好,能否請(qǐng)教一下Error: Unknown option '--module-bind'這個(gè)如果要轉(zhuǎn)換成新語(yǔ)法的方法,我搜索了半天都沒(méi)找到
2022-01-17 回復(fù) 有任何疑惑可以回復(fù)我~
webpack新版本不支持,建議在目錄下加個(gè)webpack.config.js文件
const?path?=?require('path');module.exports?=?{??entry:?'./hello.js',??mode:?'development',??output:?{????filename:?'hello.bundle.js',????path:?path.resolve(__dirname)??},};

然后運(yùn)行?webpack就可以了


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

webpack hello.js hello.bundle.js 報(bào)錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)