新建最新版 空项目,编译微信小程序

- 发布:2024-11-07 16:26
- 更新:2025-07-09 11:20
- 阅读:1689
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 26100.1742
第三方开发者工具版本号: 1.06.2409140 Stable
基础库版本号: 3.6.3
项目创建方式: CLI
CLI版本号: 3.0.0-alpha-4030220241101001
示例代码:
操作步骤:
新建最新版 空项目,编译微信小程序
新建最新版 空项目,编译微信小程序
预期结果:
无此警告
无此警告
实际结果:
警告 wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
与
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
警告 wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
与
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
bug描述:
新建最新版 空项目,编译微信小程序后 报
wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
与启用警告
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
说明是基础库中存在 小程序即将放弃的wx.getSystemInfoSync 代码引用.请开发人员即时更新
10 个回复
Jello - Web 前端
https://ask.dcloud.net.cn/question/200081
https://github.com/dcloudio/uni-app/issues/5215
已有多个issue反馈此问题了,不知道官方何时修复?
1***@qq.com
而且uni-ui组件里面也有调用该API组件,希望这个问题能得到解决
2***@qq.com
目前还没有解决
1***@qq.com
目前还没解决
p***@qq.com
目前还没解决
hbxw
目前还没解决
d***@huayimt.com
目前还没有解决。已尝试其他帖子所提4.41版本,4.45,4.55都测试过。问题仍然存在。
DCloud_UNI_yuhe
您好,请尝试使用新建的项目运行测试,这个警告在新建的项目中,已删除。uniui 的相关组件也已消除警告,具体可以查看组件的更新日志。
其它还存在警告的情况,是你使用的组件或者 api,有用到 getSystemInfo,需要全局搜索排查
d***@huayimt.com
你好,我这是祖传项目没办法新建。用的是uni.getSystemInfo()也会触发这么吗?
2025-03-13 10:18
DCloud_UNI_yuhe
回复 d***@huayimt.com: 是的,这个在小程序上会编译成 wx.getSystemInfo
2025-03-13 10:54
彗星
wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
刚入手新项目,怎么消除这个警告
DCloud_UNI_JBB
什么版本的hx?
2025-07-09 10:36
彗星
回复 DCloud_UNI_JBB: 4.65
2025-07-09 10:40
DCloud_UNI_JBB
回复 彗星: 发个demo
2025-07-09 10:58
彗星
回复 DCloud_UNI_JBB: 我在下面重新回复了
2025-07-09 11:22
DCloud_UNI_JBB
回复 彗星: im里面私聊你了,你发个可复现demo吧
2025-07-09 11:24
彗星
在小程序中和我写的一个配置发给你