You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runtime.esm.js中mergePageInstance方法报错。Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
#8526
Closed
young-ren opened this issue
Jan 14, 2021
· 7 comments
react-reconciler.production.min.js:106 TypeError: Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
at _nonIterableSpread (nonIterableSpread.js:2)
at _toConsumableArray (toConsumableArray.js:6)
at eval (react.ts:109)
at Array.forEach (<anonymous>)
at Object.mergePageInstance (react.ts:105)
at injectPageInstance (common.ts:22)
at inject (react.ts:29)
at jg (react-reconciler.production.min.js:154)
at push../node_modules/scheduler/cjs/scheduler.production.min.js.exports.unstable_runWithPriority (scheduler.production.min.js:18)
at hc (react-reconciler.production.min.js:29)
相关平台
微信小程序
小程序基础库: 2.14.3
使用框架: React
复现步骤
进入首页未报错,然后进入一个webview界面(webview是单独注册在app.config.js中的单独页面),然后在webview中使用wx.miniProgram.reLaunch回到首页就报错,调试后发现。next[item] = [...(next[item] || []), ...prev[item]]; next[item],prev[item] item为props时,2个都是对象,在数组中使用展开运算符就会报错
期望结果
不报错
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: