我用两台电脑都试了,升级到最新版本后运行微信小程序,微信开发者工具会报错:
VM144:9 app.js错误:
TypeError: (void 0) is not a function
at VM81 index.js:6
at VM47 WASubContext.js:1
at p.runWith (VM47 WASubContext.js:1)
at q (VM47 WASubContext.js:1)
at n (VM47 WASubContext.js:1)
at VM143 app.js:5
at VM47 WASubContext.js:1
at p.runWith (VM47 WASubContext.js:1)
at q (VM47 WASubContext.js:1)
at <anonymous>:7:9(env: Windows,mp,1.06.2308310; lib: 3.1.3)
(anonymous) @ VM144:9
doWhenAllScriptLoaded @ VM75:217
scriptLoaded @ VM75:245
(anonymous) @ VM75:270
Promise.then (async)
(anonymous) @ VM75:291
(anonymous) @ VM75:295
async function (async)
(anonymous) @ VM67 appservice.app.js:5
TypeError: (void 0) is not a function
at :26358/appservice/store/index.js?t=wechat&s=1714551132832&v=89af1d543d224b3cbd8dfce5e256d587:6
at :26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (:26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (:26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at n (:26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at :26358/appservice/app.js?t=wechat&s=1714551132832&v=f9ab5f2b339df353b648b4217af80e62:5
at :26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (:26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (:26358/appservice/dev/WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at <anonymous>:7:9(env: Windows,mp,1.06.2308310; lib: 3.1.3)
doWhenAllScriptLoaded @ VM75:217
scriptLoaded @ VM75:245
(anonymous) @ VM75:270
[system] WeChatLib: 3.1.3 (2023.10.18 21:38:40)
[system] Subpackages: N/A
[system] LazyCodeLoading: true
Current Wechat version do not support asynchronous getSystemInfo. "wx.getSystemInfoAsync" will be finished by synchronous implementation.
Lazy code loading is enabled. Only injecting required components.
VM269:9 app.js错误:
TypeError: (void 0) is not a function
at index.js?t=wechat&s=1714551132832&v=89af1d543d224b3cbd8dfce5e256d587:6
at WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at n (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at app.js?t=wechat&s=1714551132832&v=f9ab5f2b339df353b648b4217af80e62:5
at WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at <anonymous>:7:9(env: Windows,mp,1.06.2308310; lib: 3.1.3)
(anonymous) @ VM269:9
doWhenAllScriptLoaded @ VM200:217
scriptLoaded @ VM200:245
(anonymous) @ VM200:270
Promise.then (async)
(anonymous) @ VM200:291
(anonymous) @ VM200:295
async function (async)
(anonymous) @ appservice.app.js:5
TypeError: (void 0) is not a function
at index.js?t=wechat&s=1714551132832&v=89af1d543d224b3cbd8dfce5e256d587:6
at WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at n (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at app.js?t=wechat&s=1714551132832&v=f9ab5f2b339df353b648b4217af80e62:5
at WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1
at p.runWith (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at q (WASubContext.js?t=wechat&s=1714551132832&v=3.1.3:1)
at <anonymous>:7:9(env: Windows,mp,1.06.2308310; lib: 3.1.3)
doWhenAllScriptLoaded @ VM200:217
scriptLoaded @ VM200:245
(anonymous) @ VM200:270
Page "pages/mp_weixin/index/index" has not been registered yet.
1***@qq.com (作者)
谢谢
2024-05-02 15:20
DCloud_UNI_OttoJi
感谢反馈,我这边测试了 hello-uni-app 的 vue2 vue3 的两个版本,都可以正常展示,能提供简单的项目供我复现吗,提供有价值的信息能够尽快定位和修复问题
2024-05-07 14:33
2***@qq.com
回复 DCloud_UNI_OttoJi: 升级到4.14,编译都通不过了,报找不到vite.config.ts,然后vite-plugin-uni依赖有问题,还是退回4.08
2024-05-07 15:55