鍍金池/ 問(wèn)答/Linux  HTML/ Element UI使用過(guò)程中的問(wèn)題

Element UI使用過(guò)程中的問(wèn)題

在element UI的使用過(guò)程中,出現(xiàn)錯(cuò)誤,錯(cuò)誤信息為:
error in ./src/components/HelloWorld.vue

Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| <template>
| <div class="hello">
| <el-button>界面</el-button>

@ ./src/router/index.js 3:0-49
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

error in ./src/App.vue

Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| <template>
| <div id="app">
| <h1>aa</h1>

@ ./src/main.js 4:0-24
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
這是什么原因

回答
編輯回答
她愚我

提示你需要對(duì)應(yīng)的loader
可能是沒(méi)有使用vue-loader
能把webpack的loaders也貼出來(lái)嗎?

2017年8月23日 05:14