As a beginner of wechat app, I didn’t expect to run the code that day with a few surprises and errors
Unhandled promise rejection TypeError: WebAssembly.instantiate(): Argument 0 must be a buffer source or a WebAssembly.Module object
at Object.t.wasm_ initialize (VM1951 WAService.js:2)
at Module.e.exports.wasm_ Initialize (vm1951 waservice. JS: 2)
at vm1951 waservice. JS: 2
at O. (vm1949 asdebug. JS: 1)
at d (vm1951 waservice. JS: 2
at vm1951 waservice. JS: 2
at vm1951 waservice. JS: 2
after searching for a long time, baidu looked around and finally looked at the official documents. It turned out that the version was too low. It was suggested to set a higher version
https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html
The version settings are as follows:
Step 1: click the details in the upper right corner and a pop-up box will appear
Step 2: select local settings from the three tabs of basic information, local settings and project configuration to find the basic debugging library, Select the version 2.16.0 from the drop-down box
[external link picture transfer failed, source station may have anti-theft chain mechanism, it is recommended to save the picture and upload it directly (img-uhelrikv-16226186337)( https://oss-emcsprod-public.modb.pro/image/editor/20210520-455b21d9-ae1-429d-84b-4e43858d4834.png )]
if you select it and recompile it, no more errors will be reported, At present, it is speculated that the version is too high
Although the problem of error reporting has been solved, we can see that there are still some warnings on the console. I don’t know if you hate this warning. Although it’s not an error reporting, you want to close it…
method: find project.config.json in the applet directory, find the setting configuration object, and set checksitemap to false, Finally, save and restart the developer tool
Read More:
- Unhandled project rejection type error: webassembly instance
- Wechat applet background image error
- Error reported by wechat applet: cannot read property ‘forceupdate’ of undefined
- Ie11 reports an error unhandled promise rejection typeerror: the object does not support
- Unhandled rejection Error: EACCES: permission denied
- [react+antd] Table Error: Unhandled Rejection (TypeError): data.slice is not a function
- Unhandled rejection Error: EACCES: permission denied, open ‘/Users
- Wechat applet animate animation does not implement animation effect for the first time
- Qt Failed opening project “xxx“: No plugin can open project type “text/plain“
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Applet error – referenceerror: regeneratorruntime is not defined
- Error running app:Instant Run requires Tools | Android Enable ADB integration‘ to be enabled.
- 12c Instant Client Throws System Error Code 126 or 193 or 106
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Applet component properties error cannot read property ‘name’ of undefined
- Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project
- Mobile phone code scanning applet login authorization error
- Solution for iPhone wechat flash back with mysterious code
- Wechat third party authorization to generate QR code API
- Type error: cannot unpack non Iterable non type object appears when starting Bert server in Ubuntu system