Skip to main content

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 work#

We don't support this feature for now. please check it from native side.

Devtool Panels#

Too many logs in console#

You can disable system logs by following these steps.

  1. In the toolbar, find: Devtools -> openApp Devtool
  2. Run script(document.querySelectorAll('webview')[1].openDevTools()) in the console panel
  3. Run script(localStorage.setItem('devtool-debugger', '1')) in the console panel
  4. Reload window and test now 😄

And we will release a new package to resolve this issue later.

BXML is empty#

Please upgrade IDE to 2.25.0 or later

How to mock api with diffrent responses according to the params?#

  1. Please upgrade IDE to 2.26.0 or later
  2. Create several mock items, and make each item with diffrent rules.

For example, I have created two mock items. First one like that:

mock-request

Second one like that:

mock-request

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 upload#

Click details and check logo display correctly.

project-basic-info

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 in Details - 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 in Details - Local Settings

Preview & Remote Debug#

preview loading all the time#

Make sure IDE >= 2.25.0 and clear cache and try agian.

Preview error#

Here 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.