企业微信小程序模式报错,请问怎么解决?
一、问题截图 企业微信小程序模式无法打开页面: [图片] 小程序模式可以正常打开: [图片] 二、相关版本及部分配置信息: 操作系统:Windows 11 专业版 24H2 开发者工具版本:1.06.2409140 node版本信息:v20.8.1 typescript版本:4.1.2 部分文件配置信息: // app.json
{
"pages": ["pages/login/login", "pages/index/index"],
"style": "v2",
"window": {
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#215f3c"
},
"componentFramework": "glass-easel",
"sitemapLocation": "sitemap.json",
"lazyCodeLoading": "requiredComponents",
"permission": {
"scope.userLocation": {
"desc": "您的位置信息将用于获取附近服务"
}
}
}
三、部分错误日志: [自动热重载] 已开启代码文件保存后自动热重载
[skyline-devtools] The current public lib is not support skyline feature.(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
WAServiceMainContext.js:2 Lazy code loading is enabled. Only injecting required components.
WAServiceMainContext.js:2 TypeError: Cannot read property 'navigationStart' of undefined
at Object.tU [as traceBeginEvent] (WAServiceMainContext.js:2)
at d.loadScripts (index.js:1)(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
errorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ app.ts:2
async function (async)
(anonymous) @ appservice.app.js:5
batchLoadJsFiles @ WAServiceMainContext.js:2
loadJsFiles @ WAServiceMainContext.js:2
b @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
m @ WAServiceMainContext.js:2
y @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
WAServiceMainContext.js:2 TypeError: Cannot read property 'navigationStart' of undefined
at Object.tU [as traceBeginEvent] (WAServiceMainContext.js:2)
at le.emit (WAServiceMainContext.js:2)
at Object.emit (WAServiceMainContext.js:2)
at le. (WAServiceMainContext.js:2)
at le.emit (WAServiceMainContext.js:2)
at Object.emit (WAServiceMainContext.js:2)
at WAServiceMainContext.js:2
at WAServiceMainContext.js:2(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
errorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
le.emit @ WAServiceMainContext.js:2
emit @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
le.emit @ WAServiceMainContext.js:2
emit @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
WAServiceMainContext.js:2 TypeError: Cannot read property 'navigationStart' of undefined
at tU (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at l (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at d (WAServiceMainContext.js:2)
at WAServiceMainContext.js:2
at Timeout._onTimeout (WAServiceMainContext.js:2)
at listOnTimeout (node:internal/timers:557)
at processTimers (node:internal/timers:500)(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
errorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
l @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
d @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
listOnTimeout @ node:internal/timers:557
processTimers @ node:internal/timers:500
WAServiceMainContext.js:2 TypeError: Cannot read property 'navigationStart' of undefined
at tU (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at l (WAServiceMainContext.js:2)
at Object. (WAServiceMainContext.js:2)
at d (WAServiceMainContext.js:2)
at WAServiceMainContext.js:2
at Timeout._onTimeout (WAServiceMainContext.js:2)
at listOnTimeout (node:internal/timers:557)
at processTimers (node:internal/timers:500)(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
errorReport @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
l @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
d @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
listOnTimeout @ node:internal/timers:557
processTimers @ node:internal/timers:500
WAServiceMainContext.js:2 Uncaught (in promise) FrameworkError
LinkError: WebAssembly.instantiate(): Import #16 module="./exparser_scl_backend_bg.js" function="__wbg_new_693216e109162396" error: function import requires a callable(env: Windows,qymp,1.06.2409140; lib: 2.20.3)
o @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
emit @ WAServiceMainContext.js:2
t @ WAServiceMainContext.js:2
(anonymous) @ WAServiceMainContext.js:2
四、系统描述 系统内没有很复杂的功能,只有一个登录页面和webview页面。 1、登录页面只调用了一个接口 wx.login()
请问这个问题如何排查和解决?