apache / incubator-weex-cli

Weex Toolkit is the Standard Tooling for Weex Development.
https://weexteam.github.io/CLI-for-Apache-Weex
Apache License 2.0
564 stars 113 forks source link

v 0.24.0 - iOS (inspector 0.24.0)调试,无法显示js文件,以及预览(debug,can't display js file and preview) #617

Closed pigheartCN closed 3 years ago

pigheartCN commented 4 years ago

image

to see: https://www.jianshu.com/p/372a43a3477b

详情请看:https://www.jianshu.com/p/372a43a3477b

cnryb commented 4 years ago

chrome v80 之后不支持 document.registerElement() 了。可以先降级 chrome 版本来使用这个功能。 如果有时间的话,也请你帮忙修复一下。 出问题的代码在 https://github.com/apache/incubator-weex-cli/blob/master/packages/%40weex/plugins/debug/frontend/src/assets/inspector/ui/UIUtils.js#L1175

有两个方案供你参考 1、按照现行 ChromeDevTools frontend 版本同步修改。 2、尝试 polyfill 。

pigheartCN commented 4 years ago

document.registerElement() 我说咋老是报错。。

cnryb commented 4 years ago

element.createShadowRoot() 也不支持了。

zymxxxs commented 4 years ago

@cnryb 将最新 devtools-frontend 重新编译之后,放入工程中是否可行?

一定要同步修改么?

fancyboynet commented 4 years ago

这个修复了吗?低版本chrome哪里可以下载到啊。。。

pigheartCN commented 4 years ago

百度

在2020年09月14日 18:43,Fancy 写道:

这个修复了吗?低版本chrome哪里可以下载到啊。。。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cnryb commented 3 years ago

@cnryb 将最新 devtools-frontend 重新编译之后,放入工程中是否可行?

一定要同步修改么?

这个当然是更好的选择。有时间的话你可以试试看,来个PR呀。

MountainHill commented 3 years ago

这个问题还没解决,还有人维护吗?

cnryb commented 3 years ago

solved in #630

lvdeyang commented 3 years ago

document.registerElement() 用了document-register-element.js, element.createShadowRoot() 换成了 element.attatchShadowRoot()仍然会有问题,源码中的label button都不支持shadowRoot,除此之外还有别的问题