[分享] 关于 TypeError: o is not a constructor
#4877
Tinhone
started this conversation in
分享 / Share
Replies: 1 comment 3 replies
-
真正的问题应该在于自动更新有 bug, 组件版本大于本体时不应该更新 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
这个问题是因自动更新了组件
简化评论区
但没有更新脚本本体引起的。这次更新中的新代码
编译产物中对应的代码
因为
core/shadow-dom
API 在旧版本脚本本体中不存在(o === undefined
),所以显然会报错TypeError: o is not a constructor
。不知道怎么回事报错堆栈定位不到关键代码,挺奇怪的。
报错堆栈
还好不是浏览器兼容性问题Beta Was this translation helpful? Give feedback.
All reactions