Mini programs: check the base library version first
Give compatible syntax and a fallback plan
Prompt
Copy it whole, then replace the brackets with your own contentCode task: a mini program, check the base library version first. Code/error: [paste] Environment: [language/version/framework] Requirements: give compatible code and a fallback plan. Give your diagnosis first, then the changes, then how to verify.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inFor Mini Program white screens or broken styles on certain device models.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
The WeChat Mini Program shows a white screen on some Android devices, works on iOS, base library 3.4, custom navigation bar in use.
No device model or base library, so it cannot be located Saying only "incompatible" with no error Change too broad, introducing new problems
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts