Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deal with reLaunch jump error report in Mini Program

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to deal with reLaunch jump error in Mini programs. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.

This article introduces the steps to solve the error of using reLaunch jump in the development of Weixin Mini Programs (Mini). I hope it will help you!

Recently, in a project of doing Weixin Mini Programs (Mini), I encountered an error report problem about using reLaunch jump of Weixin Mini Programs, which is also a common error report for developers who have just contacted Weixin Mini Programs. Then this blog post will share the solution of this error for future reference and use.

error prompt

Through error reproduction, the specific error log prompt is as follows:

VM181:1 (in promise) MiniProgramError{"errMsg":"reLaunch:fail page \"pages/index/home/home\" is not found"} Object Analysis

By analyzing the error message above, and by looking up the error message and its location, confirm that the error is reported when using reLaunch jump, according to the error log description and troubleshooting reasons, check, and make an analysis summary of possible error reasons.

solution

Through the above analysis, the three methods for troubleshooting errors can be solved one by one. The specific operation steps are summarized as follows:

1. The written file name may not be correct. Check whether there is any inconsistency in the spelling of letters;

2. The file path input is incorrect. If it is a full path, you need to pay attention to adding the symbol "/" at the beginning of the path;

3. File path is not defined in app.json. Share a convenient and quick way to add interface files: Add a new path directly to the pages array in the app.json file. After saving, it will generate related files directly. You don't have to manually generate page files. Finally, you can register them. The specific operation is as shown below:

Through the above troubleshooting steps, the problem encountered in this reLaunch jump error is the third case, where the file path is not defined in app.json, resulting in an error prompt that the file cannot be found.

About "how to deal with reLaunch jump error in Mini programs" this article is shared here, I hope the above content can help you to some extent, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report