-
创建标准的uni-admin工程,使用腾讯云服务器,vue 3版本
-
此时可以正常发行H5程序
-
安装ant design vue: npm i --save ant-design-vue@next
-
配置main.js
-
发行H5程序,此时报错
- 发布:2023-03-22 20:55
- 更新:2024-08-19 21:57
- 阅读:599
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows 10/windows 11
HBuilderX类型: 正式
HBuilderX版本号: 3.7.3
浏览器平台: Chrome
浏览器版本: 111.0.5563.111
项目创建方式: HBuilderX
操作步骤:
预期结果:
可以正常发行
可以正常发行
实际结果:
出错:
[HBuilder] 20:41:39.801 <--- Last few GCs --->
[HBuilder] 20:41:39.802 [11848:411C1550] 5937 ms: Mark-sweep (reduce) 74.3 (130.1) -> 74.3 (86.1) MB, 67.9 / 0.0 ms (average mu = 0.617, current mu = 0.009) last resort GC in old space requested
[HBuilder] 20:41:39.805 [11848:411C1550] 5980 ms: Mark-sweep (reduce) 74.3 (86.1) -> 74.3 (86.1) MB, 42.9 / 0.0 ms (average mu = 0.480, current mu = 0.001) last resort GC in old space requested
[HBuilder] 20:41:39.807 <--- JS stacktrace --->
[HBuilder] 20:41:39.809 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[HBuilder] 20:41:39.811 项目 'TestAntd' 发布h5失败.
出错:
[HBuilder] 20:41:39.801 <--- Last few GCs --->
[HBuilder] 20:41:39.802 [11848:411C1550] 5937 ms: Mark-sweep (reduce) 74.3 (130.1) -> 74.3 (86.1) MB, 67.9 / 0.0 ms (average mu = 0.617, current mu = 0.009) last resort GC in old space requested
[HBuilder] 20:41:39.805 [11848:411C1550] 5980 ms: Mark-sweep (reduce) 74.3 (86.1) -> 74.3 (86.1) MB, 42.9 / 0.0 ms (average mu = 0.480, current mu = 0.001) last resort GC in old space requested
[HBuilder] 20:41:39.807 <--- JS stacktrace --->
[HBuilder] 20:41:39.809 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[HBuilder] 20:41:39.811 项目 'TestAntd' 发布h5失败.
bug描述:
-
创建标准的uni-admin工程,使用腾讯云服务器,vue 3版本
-
此时可以正常发行H5程序
-
安装ant design vue: npm i --save ant-design-vue@next
-
配置main.js
-
发行H5程序,此时报错
测试代码请见附件
[HBuilder] 20:41:39.801 <--- Last few GCs --->
[HBuilder] 20:41:39.802 [11848:411C1550] 5937 ms: Mark-sweep (reduce) 74.3 (130.1) -> 74.3 (86.1) MB, 67.9 / 0.0 ms (average mu = 0.617, current mu = 0.009) last resort GC in old space requested
[HBuilder] 20:41:39.805 [11848:411C1550] 5980 ms: Mark-sweep (reduce) 74.3 (86.1) -> 74.3 (86.1) MB, 42.9 / 0.0 ms (average mu = 0.480, current mu = 0.001) last resort GC in old space requested
[HBuilder] 20:41:39.807 <--- JS stacktrace --->
[HBuilder] 20:41:39.809 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[HBuilder] 20:41:39.811 项目 'TestAntd' 发布h5失败.
import { createSSRApp } from 'vue'
import { createI18n } from 'vue-i18n'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
export function createApp() {
const app = createSSRApp(App)
const i18n = createI18n({
locale: lang,
messages
})
app.use(i18n)
app.use(Antd)
app.use(plugin)
app.use(store)
return {
app
}
}
3 个回复
2***@qq.com
解决了吗,3.7.9,也是类似的问题
2***@qq.com
我也是,急求
Forwzb
你好,现在可以使用了吗?我也无法使用