环境:
DevEco Studio 5.0.0 Release
Runtime version: 17.0.12+1-b1087.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
说明:vue2升级到vue3之后,打包鸿蒙app成功,启动时图示window.on subWindowClose not supported
10:44:47.949 安装鸿蒙工程的依赖 ...
10:44:49.985 安装鸿蒙工程依赖成功
10:44:49.985 开始制作运行包 .hap,请耐心等待 .......................
10:45:27.741 运行包制作成功
10:45:27.741 安装 .hap 到鸿蒙设备 ...
10:45:29.349 安装成功
10:45:29.349 在鸿蒙设备上启动运行 .hap ...
10:45:30.038 运行成功
10:45:31.386 Callee constructor is OK string
10:45:31.386 Ability::constructor callee is object [object Object]
10:45:31.563 window.on subWindowClose not supported
鸿蒙后台打印日志:
Device info:emulator
Build info:emulator 5.0.0.102(SP1DEVC00E102R4P11log)
Fingerprint:9c133fcecd655f0e6c09080333a09f966cb9c2d788511db59c35da46585d73a6
Module name:erp.abcsale.cn
Version:1.0.0
VersionCode:1000000
PreInstalled:No
Foreground:Yes
Pid:16718
Uid:20020040
Reason:TypeError
Error name:TypeError
Error message:Cannot read property create of undefined
Stacktrace:
at Runtime (oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/sdk.js:318:1)
at anonymous (oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/sdk.js:732:1)
at emit (oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/sdk.js:61:1)
at onControllerAttached (oh_modules/.ohpm/@dcloudio+uni-app-runtime@onjt5cnkmpxv8bm+y1oo6mnpqjw8oa6bpkmtp8h3hxs=/oh_modules/@dcloudio/uni-app-runtime/src/main/ets/uni-mp-sdk/sdk.js:1867:1)
2 个回复
简单simple (作者)
开发工具:hbuilder X 4.36
DCloud_CHB
你执行的是运行还是发行?
真机上闪退还是模拟器上闪退?
注意:x86架构暂不支持模拟器运行。
简单simple (作者)
模拟器闪退,已私发给您包了,您帮忙给确认一下,谢谢
2024-12-06 11:25
简单simple (作者)
正解,X86架构问题,谢谢
2024-12-06 16:37