Symptom
After the atomic service starts normally in debug mode, there is no response when the routing API is called to navigate to a subpackage page.
Troubleshooting
Search the logs for the keyword fetch module. If subpackage downloading fails, the navigation will not work because the required page resources cannot be found.
The format of the key error log is as follows:
PageManager --> goToPage -> fetch module *subpackage name* failed
Conclusion
When the atomic service is started for debugging, the subpackages are not configured. The missing subpackage prevents the page navigation.
Solution
Solution 1: Configure the atomic service startup mode, and select all subpackages before starting the atomic service.
Procedure: Click Edit Configuration > Deploy Multi Hap/Hsp, and select All modules.
Solution 2: Set disableSubpackages to true during compilation. During debugging, merge the subpackages into the main package for building. Restart the atomic service after building.
ascf compile ./ -c -m --disableSubpackages=true