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

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

已經(jīng)配置了loader,為什么報(bào)錯(cuò)說(shuō)我沒(méi)有配置

webpack.config.js文件:

const path = require('path')

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

// 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$/,

??????????????? use: 'vue-loader'

??????????? },

??????????? {

??????????????? test: /\.css$/,

??????????????? use: 'css-loader'

??????????? }

??????? ]

??? },

??? plugins: [

??????? new VueLoaderPlugin()

??? ]

}

package.json文件:

"scripts": {

??? "test": "echo \"Error: no test specified\" && exit 1",

??? "build": "webpack --mode development"http:// 原本的webpack --config webpack.config.js會(huì)報(bào)錯(cuò)

? },

? "author": "",

? "license": "ISC",

? "dependencies": {

??? "css-loader": "^1.0.0",

??? "vue": "^2.5.17",

??? "vue-loader": "^15.2.7",

??? "vue-template-compiler": "^2.5.17",

??? "webpack": "^4.16.5"

? },

? "devDependencies": {

??? "webpack-cli": "^3.1.0"

? }

報(bào)錯(cuò)信息:

ERROR in ./src/app.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> <template>
|???? <div id="test">{{text}}</div>
| </template>
?@ ./src/index.js 2:0-27 6:21-24
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vue-todo@1.0.0 build: `webpack --mode development`
npm ERR! Exit status 2
npm ERR!


正在回答

1 回答

你的第一個(gè)template標(biāo)簽前面多了個(gè)空格

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

舉報(bào)

0/150
提交
取消

已經(jīng)配置了loader,為什么報(bào)錯(cuò)說(shuō)我沒(méi)有配置

我要回答 關(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)