Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead

博客指出报错原因是webpack4版本不匹配,给出解决办法,即安装extract - text - webpack - plugin@next插件,将使用contenthash的地方改成chunkhash,然后重新打包。

报错内容如下图

报错原因:webpack4 版本不匹配造成的

解决办法:安装 extract-text-webpack-plugin@next 插件

npm i extract-text-webpack-plugin@next

将使用 contenthash 的地方改成 chunkhash ,重新打包即可

 

[system] SyntaxError: "[object Object]" is not valid JSON at JSON.parse (<anonymous>) at pages-new_Index-newDetail.js:729:47 at Proxy.renderList (chunk-vendors.js:27140:16) at Proxy.render (pages-new_Index-newDetail.js:687:23) at VueComponent._render (chunk-vendors.js:28058:22) at VueComponent.updateComponent (chunk-vendors.js:28576:21) at Watcher.get (chunk-vendors.js:28995:25) at Watcher.run (chunk-vendors.js:29070:22) at flushSchedulerQueue (chunk-vendors.js:28826:13) at Array.<anonymous> (chunk-vendors.js:26455:12) (anonymous) @ chunk-vendors.js:24025 push.kzdG.50ec.e.default.install.e.mixin.beforeCreate.Array.isArray.n.onError.length.n.onError @ chunk-vendors.js:24025 invokeWithErrorHandling @ chunk-vendors.js:26329 (anonymous) @ chunk-vendors.js:33077 push.kzdG.eeff.e.config.errorHandler @ chunk-vendors.js:24025 globalHandleError @ chunk-vendors.js:26345 handleError @ chunk-vendors.js:26314 (anonymous) @ chunk-vendors.js:28060 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 run @ chunk-vendors.js:29070 flushSchedulerQueue @ chunk-vendors.js:28826 (anonymous) @ chunk-vendors.js:26455 flushCallbacks @ chunk-vendors.js:26381 Promise.then timerFunc @ chunk-vendors.js:26408 nextTick @ chunk-vendors.js:26465 queueWatcher @ chunk-vendors.js:28918 update @ chunk-vendors.js:29060 (anonymous) @ chunk-vendors.js:28479 eval @ newDetail.vue:2169 setInterval startCountdownRefresh @ newDetail.vue:2168 mounted @ newDetail.vue:1334 invokeWithErrorHandling @ chunk-vendors.js:26329 callHook @ chunk-vendors.js:28735 insert @ chunk-vendors.js:27652 invokeInsertHook @ chunk-vendors.js:30861 patch @ chunk-vendors.js:31080 (anonymous) @ chunk-vendors.js:28458 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 run @ chunk-vendors.js:29070 flushSchedulerQueue @ chunk-vendors.js:28826 (anonymous) @ chunk-vendors.js:26455 flushCallbacks @ chunk-vendors.js:26381 Promise.then timerFunc @ chunk-vendors.js:26408 nextTick @ chunk-vendors.js:26465 queueWatcher @ chunk-vendors.js:28918 update @ chunk-vendors.js:29060 (anonymous) @ chunk-vendors.js:28479 forceRender @ chunk-vendors.js:28157 (anonymous) @ chunk-vendors.js:28179 (anonymous) @ chunk-vendors.js:24803 (anonymous) @ index.js:3182 Promise.then (anonymous) @ index.js:3181 resolveAsyncComponent @ chunk-vendors.js:28196 createComponent @ chunk-vendors.js:27713 _createElement @ chunk-vendors.js:27935 createElement @ chunk-vendors.js:27866 (anonymous) @ chunk-vendors.js:28007 render @ index.js:4293 (anonymous) @ chunk-vendors.js:28058 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 Watcher @ chunk-vendors.js:28984 mountComponent @ chunk-vendors.js:28583 (anonymous) @ chunk-vendors.js:33093 init @ chunk-vendors.js:27629 createComponent @ chunk-vendors.js:30490 createElm @ chunk-vendors.js:30437 patch @ chunk-vendors.js:30992 (anonymous) @ chunk-vendors.js:28455 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 Watcher @ chunk-vendors.js:28984 mountComponent @ chunk-vendors.js:28583 (anonymous) @ chunk-vendors.js:33093 init @ chunk-vendors.js:27629 createComponent @ chunk-vendors.js:30490 createElm @ chunk-vendors.js:30437 patch @ chunk-vendors.js:30992 (anonymous) @ chunk-vendors.js:28455 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 Watcher @ chunk-vendors.js:28984 mountComponent @ chunk-vendors.js:28583 (anonymous) @ chunk-vendors.js:33093 init @ chunk-vendors.js:27629 createComponent @ chunk-vendors.js:30490 createElm @ chunk-vendors.js:30437 createChildren @ chunk-vendors.js:30565 createElm @ chunk-vendors.js:30466 patch @ chunk-vendors.js:30992 (anonymous) @ chunk-vendors.js:28455 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 Watcher @ chunk-vendors.js:28984 mountComponent @ chunk-vendors.js:28583 (anonymous) @ chunk-vendors.js:33093 init @ chunk-vendors.js:27629 createComponent @ chunk-vendors.js:30490 createElm @ chunk-vendors.js:30437 patch @ chunk-vendors.js:31031 (anonymous) @ chunk-vendors.js:28455 updateComponent @ chunk-vendors.js:28576 get @ chunk-vendors.js:28995 Watcher @ chunk-vendors.js:28984 mountComponent @ chunk-vendors.js:28583 (anonymous) @ chunk-vendors.js:33093 eval @ main.js:28 mpOK @ index.js:4809 __webpack_require__ @ index.js:854 fn @ index.js:151 1 @ index.js:1115 __webpack_require__ @ index.js:854 checkDeferredModules @ index.js:46 (anonymous) @ index.js:994 (anonymous) @ index.js:997 chunk-vendors.js:25086 [Vue warn]: Error in render: "SyntaxError: "[object Object]" is not valid JSON" found in ---> at pages/new_Index/newDetail.vue这个报错是什么原因呢?是页面上的json.parse出的错还是事件中的出的错呢
最新发布
11-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

悟世君子

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值