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

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

求解決 大神帶

為什么我在前面那就多頁面應用的時候報 entry undefined的錯誤 ? ?然后a.html是好的 b和c這邊就是有報錯

正在回答

5 回答

body和head里面都不能引用script src="<%= htmlWebpackPlugin.files.chunks.main.entry %>"></script>為什么啊

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

有注釋其實是可以的,但不能有script src="<%= htmlWebpackPlugin.files.chunks.main.entry %>"></script>這種固定的引用,把這個刪除就好了

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

這個錯 是什么鬼

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

問題好像已經解決,index頁面中好像在body中有注釋就不行,把注釋刪掉就行了


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

ERROR in ./src/script/b.js

Module parse failed: E:\new\webpack-demo\src\script\b.js Unexpected characte

。' (1:7)

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

| console。log('haha');


ERROR in ./src/script/c.js

Module parse failed: E:\new\webpack-demo\src\script\c.js Unexpected characte

。' (1:7)

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

| console。log('zizi');


ERROR in Template execution failed: TypeError: Cannot read property 'entry'

ndefined


ERROR in ? TypeError: Cannot read property 'entry' of undefined


? - index.html:97

? ? E:/new/webpack-demo/index.html:97:43


? - index.html:100 module.exports

? ? E:/new/webpack-demo/index.html:100:3


? - index.js:264

? ? [webpack-demo]/[html-webpack-plugin]/index.js:264:16


? - util.js:16 tryCatcher

? ? [webpack-demo]/[bluebird]/js/release/util.js:16:23


? - promise.js:512 Promise._settlePromiseFromHandler

? ? [webpack-demo]/[bluebird]/js/release/promise.js:512:31


? - promise.js:569 Promise._settlePromise

? ? [webpack-demo]/[bluebird]/js/release/promise.js:569:18


? - promise.js:606 Promise._settlePromiseCtx

? ? [webpack-demo]/[bluebird]/js/release/promise.js:606:10


? - async.js:138 Async._drainQueue

? ? [webpack-demo]/[bluebird]/js/release/async.js:138:12


? - async.js:143 Async._drainQueues

? ? [webpack-demo]/[bluebird]/js/release/async.js:143:10


? - async.js:17 Immediate.Async.drainQueues

? ? [webpack-demo]/[bluebird]/js/release/async.js:17:14


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

舉報

0/150
提交
取消

求解決 大神帶

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

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

幫助反饋 APP下載

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

公眾號

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