无

- 发布:2022-12-26 18:35
- 更新:2024-06-21 10:33
- 阅读:374
产品分类: uniapp/小程序/字节跳动
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.7
HBuilderX类型: 正式
HBuilderX版本号: 3.6.14
第三方开发者工具版本号: 4.0.1
基础库版本号: 2.76.0.4
项目创建方式: HBuilderX
操作步骤:
预期结果:
无
无
实际结果:
无
无
bug描述:
"TypeError: undefined is not an object (evaluating 'o.$options') @common/vendor.js:10:44370\nforEach@[native code]\n@common/vendor.js:10:44323\nforEach@[native code]\nvt@common/vendor.js:10:44125\n@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:446748\nsj@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:391522\nAU@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:466716\n@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:108520\n@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:126685\nforEach@[native code]\nsubscribeHandler@file:///var/mobile/Containers/Data/Application/04DB5BD0-E467-49D1-BFD8-4625BF6E8055/Library/unisus/basebundle/normal/2770100/tma-core.js:2:126643"

Pluto_ali (作者)
只有ios会报错,组件中用了mounted会报错
-
-
Pluto_ali (作者)
回复 DCloud_UNI_WZF: 3.6.4这个版本不会报错o.$options undefined,但是比较新的版本就会有这个问题
2023-01-09 11:40
Pluto_ali (作者)
var o = t.$vm;
if (o.$options.generic && (o = function(e) {
var t = e.$parent;
while (t && t.$parent && (t.$options
.generic || t.$parent
.$options.generic || t
.$scope._$vuePid)) t = t
.$parent;
return t && t.$parent
}(o) || o), "$emit" === r) return void o
.$emit.apply(o, xt(t.$vm, e, n[1], n[2],
s, r));
2023-01-04 09:56
Pluto_ali (作者)
编译后vendor.js的这个地方o.$options报未定义bug,导致页面onload不走
2023-01-04 09:57