亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

npm run build 報錯,webpack.config.js 中loader也配置了,還是報錯

[email protected] build C:\Users\31521\Documents\HBuilderProjects\慕課網學習\vue_webpack_todo222

> webpack --config webpack.config.js


Hash: 58e147e8275c42f986c7

Version: webpack 2.1.0-beta.22

Time: 247ms

? ? Asset? ? Size? Chunks? ? ? ? ? ? ?Chunk Names

bundle.js? 221 kB? ? ? ?0? [emitted]? main

? ?[3] ./src/app.vue 286 bytes {0} [built] [failed] [1 error]

? ?[5] ./src/index.js 186 bytes {0} [built]

? ? + 4 hidden modules


ERROR in ./src/app.vue

Module parse failed: C:\Users\31521\Documents\HBuilderProjects\慕課網學習\vue_webpack_todo222\src\app.vue Unexpected token (1:0)

You may need an appropriate loader to handle this file type.

| <template>

|? ? ? ? ? ? ? ?<div id="app">{{text}}</div>

| </template>

?@ ./src/index.js 2:0-27

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! [email protected] build: `webpack --config webpack.config.js`

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the [email protected] 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\31521\AppData\Roaming\npm-cache\_logs\2018-07-14T03_48_09_176Z-debug.log


正在回答

2 回答

錯的 不行

0 回復 有任何疑惑可以回復我~

試試這個呢?npm install vue-template-compiler

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

npm run build 報錯,webpack.config.js 中loader也配置了,還是報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號