1***@qq.com
1***@qq.com
  • 发布:2024-05-01 16:20
  • 更新:2024-05-07 15:23
  • 阅读:271

升级到Hbuilder4.14后,运行微信小程序,微信开发者工具报错:Page "pages/mp_weixin/index/index" has not been registered yet.

分类:HBuilderX

我用两台电脑都试了,升级到最新版本后运行微信小程序,微信开发者工具会报错:

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.

2024-05-01 16:20 负责人:DCloud_UNI_OttoJi 分享
已邀请:
9***@qq.com

9***@qq.com - 我是一名程序猿

一样。回退4.0.8就行

  • 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

DCloud_UNI_GSQ

DCloud_UNI_GSQ

微信开发者工具的版本多少?使用hello uni-app示例能否复现此问题?

x***@outlook.com

x***@outlook.com

相同的问题。
大哥们,这是吃饭的家伙事啊,好好测试一下,辛苦了

  • DCloud_UNI_OttoJi

    感谢反馈,我这边测试了 hello-uni-app 的 vue2 vue3 的两个版本,都可以正常展示,能提供简单的项目供我复现吗,提供有价值的信息能够尽快定位和修复问题

    2024-05-07 14:32

DCloud_UNI_OttoJi

DCloud_UNI_OttoJi - 日常回复 uni-app/x 问题,如果艾特我没看到,请主动私信

感谢反馈,我这边测试了 hello-uni-app 的 vue2 vue3 的两个版本,都可以正常展示,能提供简单的项目供我复现吗,提供有价值的信息能够尽快定位和修复问题

w***@126.com

w***@126.com

app.js错误:
TypeError: (void 0) is not a function
at VM432 index.js:6
at WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1
at p.runWith (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)
at V (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)
at r (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)
at VM443 index.js:6
at WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1
at p.runWith (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)
at V (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)
at r (WASubContext.js?t=wechat&s=1715066392891&v=3.4.3:1)(env: Windows,mp,1.06.2401020; lib: 3.4.3)

  • DCloud_UNI_OttoJi

    感谢反馈,我这边测试了 hello-uni-app 的 vue2 vue3 的两个版本,都可以正常展示,能提供简单的项目供我复现吗,提供有价值的信息能够尽快定位和修复问题

    2024-05-07 15:26

  • w***@126.com

    回复 DCloud_UNI_OttoJi: 项目代码怎么提供给你?

    2024-05-09 11:19

  • DCloud_UNI_OttoJi

    回复 w***@126.com: 新开帖子或者私聊我吧

    2024-05-09 14:19

要回复问题请先登录注册