msojocs / wechat-web-devtools-linux

适用于微信小程序的微信开发者工具 Linux移植版
MIT License
662 stars 64 forks source link

使用appImage打开后,控制台报错$gwx is not defined #94

Closed imic07 closed 1 year ago

imic07 commented 1 year ago

问题描述 控制台错误如下,切换多个lib都是这个错

[渲染层错误] Uncaught ReferenceError: $gwx is not defined(env: Linux,mp,1.06.2308310; lib: 2.25.4)
[system] WeChatLib: 2.25.4 (2023.8.30 23:34:48)
[渲染层错误] ReferenceError: $gwx is not defined
    at http://127.0.0.1:38392/__pageframe__/__dev__/wxappcode.js?t=wechat&s=1696149647722&v=f5bca2bba031694a1c8fd50f5239cca8:4:34(env: Linux,mp,1.06.2308310; lib: 2.25.4)
[渲染层错误] ReferenceError: $gwx is not defined
    at <anonymous>:13:26
    at <anonymous>:44:21(env: Linux,mp,1.06.2308310; lib: 2.25.4)

问题复现

期望的效果

截屏 image

image

版本信息 (这是必要的):

代码片段

额外的信息 网上搜索了下,有类似的问题可以参考下 https://github.com/dragonation/wechat-devtools/issues/15 https://www.jianshu.com/p/f3ee3788ef91?utm_campaign=maleskine...&utm_content=note&utm_medium=seo_notes

msojocs commented 1 year ago

能否提供复现demo

imic07 commented 1 year ago

@msojocs 我现在还确定不到是项目的原因还是其他的原因。我先试下其他版本。

imic07 commented 1 year ago

@msojocs 用新版本的appImage直接运行后,可以看到如下错误日志,同时控制台有下面的错误。 启动后的console控制台

TypeError: $gwx is not a function
    at <anonymous>:15:47
    at doWhenAllScriptLoaded (<anonymous>:703:21)
    at loadedCallback (<anonymous>:17:5)
    at d.loadBabelModules (assubloader.js:1)(env: Linux,mp,1.06.2308310; lib: 2.25.4)

启动日志:

    ~/Desktop  ./WeChat_Dev_Tools_v1.06.2308310-1_x86_64_linux.AppImage                                                                           ✔ 
Error: unrecognized flag --harmony-weak-refs
Try --help for options
libva error: /usr/lib/dri/i965_drv_video.so init failed
[95530:95530:1001/183849.753037:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[95534:95541:1001/183851.003851:ERROR:cert_verify_proc_builtin.cc(601)] No net_fetcher for performing AIA chasing.
[95534:95543:1001/183851.004331:ERROR:cert_verify_proc_builtin.cc(601)] No net_fetcher for performing AIA chasing.
Error: unrecognized flag --harmony-weak-refs
Try --help for options
[95534:95543:1001/183851.276086:ERROR:cert_verify_proc_builtin.cc(601)] No net_fetcher for performing AIA chasing.
Error: unrecognized flag --harmony-weak-refs
Try --help for options
Error: unrecognized flag --harmony-weak-refs
Try --help for options
[95488:95488:1001/183854.182073:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
[95488:95488:1001/183854.182197:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
[95488:95488:1001/183854.182341:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
[95488:95488:1001/183854.182484:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
[95488:95488:1001/183854.182620:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
[95488:95488:1001/183854.182755:ERROR:CONSOLE(2)] "console.assert", source: devtools://devtools/bundled/third_party/sentry.js (2)
Error: unrecognized flag --harmony-weak-refs
Try --help for options
[95534:95540:1001/183900.751508:ERROR:cert_verify_proc_builtin.cc(601)] No net_fetcher for performing AIA chasing.

我测试了下用的老版本appImage打开项目,没任何问题: WeChat_Dev_Tools_v1.06.2209070-1_x86_64_linux.AppImage

msojocs commented 1 year ago

不提供demo就算了

jilen commented 1 year ago

@imic07 问题解决了吗?我这也有一样的问题

imic07 commented 1 year ago

解决不了。用老版本可以。 @jilen

sjava commented 1 year ago

也有同样的问题

sunny-zhang-98 commented 1 year ago

v1.06.2209070-1 @msojocs 这个版本是可用的, 后面的版本都有上面这个问题, 需要支持可以联系我 sunny-zcy@qq.com