小程序错误日志显示页面不存在,但我的路由里根本没有这个页面
发布于 6 年前 作者 xiuying14 8440 次浏览 来自 官方Issues

onPageNotFound error: page "pages/contact/pages/contact/contact" is not found.

Error: onPageNotFound error: page "pages/contact/pages/contact/contact" is not found.

at Function.<anonymous> (https://lib/WASubContext.js:2:602385)

at d (https://lib/WASubContext.js:2:104720)

at c.<anonymous> (https://lib/WASubContext.js:2:105545)

at c.emit (https://lib/WASubContext.js:2:606737)

at emit (https://lib/WASubContext.js:2:559932)

at g (https://lib/WASubContext.js:2:1039552)

at c.<anonymous> (https://lib/WASubContext.js:2:680860)

at c.emit (https://lib/WASubContext.js:2:607148)

at Object.emit (https://lib/WASubContext.js:2:559902)

at https://lib/WASubContext.js:2:589943


如上是一个报错信息,但是这个页面不存在于小程序代码中,而且也没有写任何代码会跳转至这个页面。

看小程序后台的运维中心,只有安卓手机才会有这个报错信息,大部分的微信版本是8.0.3

3 回复

前面少了个/

你打开页面的路径不对,写成绝对路径

跳转时候吗?路径前加个/试试

回到顶部