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
index.esm.js?eb04:2680 showPage:fail Received a falsy component for route "/pages/index/index". Forget to export it?
index.esm.js?eb04:2657 Uncaught (in promise) TypeError: Cannot read property 'componentDidShow' of undefined
at Route.componentWillReceiveProps (index.esm.js?eb04:2657)
at eval (index.esm.js?eb37:1900)
at errorCatcher (index.esm.js?eb37:1749)
at reRenderComponent (index.esm.js?eb37:1899)
at ComponentWrapper.update (index.esm.js?eb37:2263)
at patch (index.esm.js?eb37:993)
at patchKeyedChildren (index.esm.js?eb37:1122)
at patchArrayChildren (index.esm.js?eb37:1050)
at patchChildren (index.esm.js?eb37:1064)
at patch (index.esm.js?eb37:987)
期望结果
在异步回调里能成功调用Taro.redirectTo方法
实际结果
报错:
index.esm.js?eb04:2680 showPage:fail Received a falsy component for route "/pages/index/index". Forget to export it?
相关平台
H5
复现仓库
https://github.com/gxsandzxl/taro-bug-demo2
浏览器版本: 浏览器版本: Chrome 版本 87.0.4280.88(正式版本) (64 位)
使用框架: React
复现步骤
在
app.jsx
的componentDidMount
钩子里异步调用Taro.redirectTo
方法会报错,同步调用则不会报错栈:
期望结果
在异步回调里能成功调用Taro.redirectTo方法
实际结果
报错:
环境信息
The text was updated successfully, but these errors were encountered: