小程序运行报错: navigateTo:fail page "pages/navigate/navigate" is not found?
2020-03-06 17:57
3143 查看
错误原因:
页面路径没有在app.json里面没有定义过,所以导致访问不到路径。或者文件夹名字有误,且子文件夹下面的文件名与文件夹名不相同。
解决方法:
直接在app.json中添加配置项
“pages”:[
“pages/index/index”,
“pages/logs/logs”,
"pages/otherpage/otherpage”
]
注意事项:1. url用绝对路径时需要在最开始加“/”;2. 在toolbar定义过的页面不能跳转;
————————————————
版权声明:本文为CSDN博主「yuhao309」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yuhao309/article/details/82378538
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- 小程序运行报错: navigateTo:fail page "pages/navigate/navigate" is not found?
- 微信小程序跳转出现 navigateTo:fail page "pages/index/pages/input/input" is not found
- Vant Weapp小程序蹲坑之navigateTo:fail page not found
- 微信小程序报错:Component is not found in path '''path/to/vant-weapp/dist/toast/index'
- 微信小程序-页面跳转失败WAService.js:3 navigateTo:fail url not in app.json
- 微信小程序navigator无法跳转 navigateTo:fail url not in app.json
- Page[pages/index/index] not found. May be caused by: 1. Forgot to add page route in app.json
- 解决Android开发中在调试模式下运行一个程序后出现Application (xxx) is waiting for the debugger to attach
- The specified named connection is either not found in the configuration, not intended to be used
- 引用DLL打包出错”But the dll is not allowed to be included or could not be found.“
- Selenium2学习-012-WebUI自动化实战实例-010-解决元素失效:StaleElementReferenceException: stale element reference: element is not attached to the page document
- 解决: is not found. Have you run APT to generate&n
- 运行android程序的时分出现了No compatible targets were found.Do you wish to.
- hadoop运行提示JAVA_HOME is not set and could not be found
- net.sf.jasperreports.engine.util.JRFontNotFoundException: Font ‘黑体’ is not available to the JVM
- 罕见bug解决办法: kienct 1代运行错误Failed to claim camera interface: LIBUSB_ERROR_NOT_FOUND
- WebService runtime modeler error: Wrapper class XXX is not found. Have you run APT to generate them?
- Mac系统下执行hadoop jar 运行在某包内的程序 提示java.lang.ClassNotFoundException的解决方法
- Loadrunner:场景运行较长时间后报错:Message id [-17999] was not saved - Auto Log cache is too small to contain the message.
- 使用pyinstaller 打包程序后,运行Failed to execute script MainPage 报错,解决办法