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

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

使用npm run build時(shí),出現(xiàn)下面的問題

使用npm run build時(shí),出現(xiàn)下面的問題。檢查代碼,應(yīng)該是沒有寫錯(cuò)的。怎么解決呢?

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! vue_ssr_tech@1.0.0 build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue_ssr_tech@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/mymac/.npm/_logs/2018-09-18T07_41_36_761Z-debug.log

我按照教學(xué)視頻配置的代碼如下:

https://img1.sycdn.imooc.com//5ba0ad8a0001fa4311580618.jpg

https://img1.sycdn.imooc.com//5ba0ad8c00016a9e13460956.jpg

https://img1.sycdn.imooc.com//5ba0ad8d0001ce9009300966.jpg

https://img1.sycdn.imooc.com//5ba0ad930001a1cb11740552.jpg


正在回答

3 回答

const?path?=?require('path')
const?{?VueLoaderPlugin?}?=?require('vue-loader')

module.exports?=?{
????entry:?path.join(__dirname,'src/index.js'),
????output:?{
????????filename:?"bundle.js",
????????path:?path.join(__dirname,'dist')
????},
????module:?{
????????rules:?[
????????????{
????????????????test:?/\.vue$/,
????????????????loader:?'vue-loader'
????????????},
????????????{
????????????????test:?/\.css$/,
????????????????use:?['style-loader',?'css-loader']
????????????},
????????????{
????????????????test:?/\.(gif|jpg|jpeg|png|svg)$/,
????????????????use:?[
????????????????????{
????????????????????????loader:?'url-loader',
????????????????????????options:?{
????????????????????????????limit:?1024,
????????????????????????????name:?'[name].[ext]'
????????????????????????}
????????????????????}
????????????????]
????????????}
????????]
????},
????plugins:?[
????????new?VueLoaderPlugin()
????]
}


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

點(diǎn)又

有用,贊一個(gè)
2018-10-05 回復(fù) 有任何疑惑可以回復(fù)我~

這個(gè)可能是你有在webpack.config.js中加入plugins(我多裝了style-loader url-loader file-loader)

const?path?=?require('path')


module.exports?=?{
????entry:?path.join(__dirname,'src/index.js'),
????output:?{
????????filename:?"bundle.js",
????????path:?path.join(__dirname,'dist')
????},
????module:?{
????????rules:?[
????????????{
????????????????test:?/\.vue$/,
????????????????loader:?'vue-loader'
????????????},
????????????{
????????????????test:?/\.css$/,
????????????????use:?['style-loader',?'css-loader']
????????????},
????????????{
????????????????test:?/\.(gif|jpg|jpeg|png|svg)$/,
????????????????use:?[
????????????????????{
????????????????????????loader:?'url-loader',
????????????????????????options:?{
????????????????????????????limit:?1024,
????????????????????????????name:?'[name].[ext]'
????????????????????????}
????????????????????}
????????????????]
????????????}
????????]
????},
????
}


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

LGforgone

之前打錯(cuò)了,是可能你沒有加plugins,編譯的時(shí)候報(bào)錯(cuò)好像有提醒的,我之前好像遇到過,加了plugins就好了
2018-09-24 回復(fù) 有任何疑惑可以回復(fù)我~

這個(gè)是新版本的webpack有更改過的緣故,只要把<style></style>中間的樣式注釋掉就不會(huì)報(bào)錯(cuò),應(yīng)該是少了一個(gè)關(guān)于style的插件,但具體是什么我暫時(shí)也不知道

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

舉報(bào)

0/150
提交
取消

使用npm run build時(shí),出現(xiàn)下面的問題

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

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

幫助反饋 APP下載

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

公眾號(hào)

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