FAQ
You can checkout FAQ one by one or inpiut keyword to search.
For have a better reading experience, we split FAQ into serveral parts by feature. Here are Simulor, Devtool Panels, Upload,Network,Preview & Remote Debug and Extension.
#
Simulator#
darkMode: false not workWe don't support this feature for now. please check it from native side.
#
Devtool Panels#
Too many logs in consoleYou can disable system logs by following these steps.
- In the toolbar, find:
Devtools -> openApp Devtool
- Run script(
document.querySelectorAll('webview')[1].openDevTools()
) in the console panel - Run script(
localStorage.setItem('devtool-debugger', '1')
) in the console panel - Reload window and test now 😄
And we will release a new package to resolve this issue later.
#
BXML is emptyPlease upgrade IDE to 2.25.0 or later
#
How to mock api with diffrent responses according to the params?- Please upgrade IDE to 2.26.0 or later
- Create several mock items, and make each item with diffrent rules.
For example, I have created two mock items. First one like that:
Second one like that:
After that:
- if you call
bn.request({ url: "https://www.b.com/", success: console.log })
and it will print 123. - if you call
bn.request({ url: "https://www.a.com/", success: console.log })
and it will print 456.
#
Upload#
400 error when uploadClick details
and check logo display correctly.
If no, please make sure appid and current envrionment is correct.
#
Network#
network requests failed- Try to check
Does not verify valid domain names, web-view (business domain names), TLS versions and HTTPS certificates
inDetails - Local Settings
#
image component is blank- Inpect image node in BXML panel and make sure the origin-src is correct. If no, please check you code.
if src is empty, please report bug to MiniProgramBot
- Try to check
Does not verify valid domain names, web-view (business domain names), TLS versions and HTTPS certificates
inDetails - Local Settings
#
Preview & Remote Debug#
preview loading all the timeMake sure IDE >= 2.25.0 and clear cache and try agian.
#
Preview errorHere I list the most common error code and its reason to help devlopers find the root cause quickly.
350002
means resource not found, please make sure you're using production package or change the env to be production if you're using development package. And make sure you app is in-house mode.603301
means invalid (type invalid or cannot download, such as webp type image, not sure we have error code for this before)603302
means image not found, please check the url of the image.603501
means __app.js is missing, please upgrade your IDE and try again.