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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

運(yùn)行 npm run build 時(shí)報(bào)錯(cuò), 這個(gè)是什么問題的啊

運(yùn)行 npm run build 時(shí)報(bào)錯(cuò), 這個(gè)是什么問題的啊

chenxiaoxiao12 2019-03-12 18:43:09
E:\chenxiao\VUE\vuejs\vue_book\8VuejsItemCase>npm run build> 8vuejsitemcase@1.0.0 build E:\chenxiao\VUE\vuejs\vue_book\8VuejsItemCase> webpack --config webpack.config.jsHash: 4edc359bac0a31e99cceVersion: webpack 4.29.6Time: 2300msBuilt at: 2019-03-12 18:10:07?1 assetEntrypoint main = bundle.js[0] (webpack)/buildin/global.js 472 bytes {0} [built][1] ./src/app.vue?vue&type=template&id=5ef48958& 168 bytes {0} [built] [failed] [1 error][3] ./src/app.vue?vue&type=style&index=0&lang=css& 170 bytes {0} [built] [failed] [1 error][7] ./src/index.js + 3 modules 4.05 KiB {0} [built] [1 error]? ? | ./src/index.js 185 bytes [built]? ? | ./src/app.vue 1.11 KiB [built] [1 error]? ? | ./src/app.vue?vue&type=script&lang=js& 124 bytes [built]? ? |? ? ?+ 1 hidden module? ? + 4 hidden modulesWARNING in configurationThe 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/ERROR in ./src/app.vueModule Error (from ./node_modules/vue-loader/lib/index.js):vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.?@ ./src/index.js 2:0-27 8:20-23ERROR in ./src/app.vue?vue&type=style&index=0&lang=css& 16:0Module parse failed: Unexpected character '#' (16:0)You may need an appropriate loader to handle this file type.|?|?> #test{color:red}|??@ ./src/app.vue 4:0-63?@ ./src/index.jsERROR in ./src/app.vue?vue&type=template&id=5ef48958& 2:0Module parse failed: Unexpected token (2:0)You may need an appropriate loader to handle this file type.|?> <div id="test">{{text}}</div>|??@ ./src/app.vue 1:0-82 11:2-8 12:2-17?@ ./src/index.jsnpm ERR! code ELIFECYCLEnpm ERR! errno 2npm ERR! 8vuejsitemcase@1.0.0 build: `webpack --config webpack.config.js`npm ERR! Exit status 2npm ERR!npm ERR! Failed at the 8vuejsitemcase@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\chenxiao\AppData\Roaming\npm-cache\_logs\2019-03-12T10_10_07_151Z-debug.logE:\chenxiao\VUE\vuejs\vue_book\8VuejsItemCase>
查看完整描述

1 回答

?
chenxiaoxiao12

TA貢獻(xiàn)2條經(jīng)驗(yàn) 獲得超3個(gè)贊

const path = require('path')

const VueLoaderPlugin = require('vue-loader/lib/plugin')


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: ['css-loader']

},

]

},

plugins:[

new VueLoaderPlugin()

]

}


查看完整回答
2 反對(duì) 回復(fù) 2019-03-12
  • 1 回答
  • 0 關(guān)注
  • 4855 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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