在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ vue項(xiàng)目在運(yùn)行時(shí)報(bào)錯(cuò),無法打開主頁

vue項(xiàng)目在運(yùn)行時(shí)報(bào)錯(cuò),無法打開主頁

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

external "querystring"?71da:1 Uncaught ReferenceError: require is not defined

at eval (external "querystring"?71da:1)
at Object.<anonymous> (app.js:2401)
at __webpack_require__ (app.js:621)
at fn (app.js:47)
at Object.eval (client.js?7955:17)
at eval (266:280)
at Object.<anonymous> (app.js:2377)
at __webpack_require__ (app.js:621)
at fn (app.js:47)
at eval (dev-client.js?7d67:3)

控制臺信息如下:

clipboard.png

回答
編輯回答
孤影

控制臺不是讓你看issues嘛。。。

1.更新依賴包,這是原話,如果你不知道這個(gè)警告是什么,你可以忽視它,它會(huì)隨著時(shí)間消失。

If you have no clue what this is all about, you can safely ignore the deprecation warning. It will disappear over time if you keep your packages up-to-date.

2.在 webpack.config.js 加上 process.traceDeprecation = true,不過你得找到哪個(gè) loader 出現(xiàn)這個(gè)警告的

If you're a webpack user who is using another loader, you can set process.traceDeprecation = true in your webpack.config.js to find out which loader is causing this deprecation warning.

loader-utils Issues#56

2017年12月21日 07:38