Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义导航条只能使用Navigator来进行页面跳转吗?我使用Taro.navigateTo会页面报错 #18

Open
yjj891896039 opened this issue Nov 19, 2019 · 3 comments

Comments

@yjj891896039
Copy link

错误:
index.js:272 Uncaught (in promise) TypeError: Cannot convert undefined or null to object
at t.assign ()
at WithLogin.Connect (index.js:272)
at new WithLogin (mixin.js:30)
at Object.taro$$1.(:53757/appservice/anonymous function) [as navigateTo] (http://127.0.0.1:53757/appservice/npm/@tarojs/taro-weapp/dist/index.js:3404:29)
at index.js:98

@lingxiaoyi
Copy link
Owner

重启开具 或者重新打包代码试试

@yjj891896039
Copy link
Author

重启了也会报错,我要navigateTo的目标页面也是有自定义导航条的,如果目标页面没有自定义导航条就不会报错

@yjj891896039
Copy link
Author

已解决,我的页面代码有两个注解@connect和@withComponent,我把@connect放到@withComponent上面就不会报错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants