You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
有部分用户会报异常
堆栈信息(去掉了行列号) "|\u0002\u0000\u0000\"MiniProgramError\\nCannot read property 'now' of undefined\\nTypeError: Cannot read property 'now' of undefined\\n at Object.<anonymous> (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Module._ (https://usr/app-service.js:25254:14)\\n at l (https://usr/app-service.js:)\\n at t (https://usr/app-service.js:)\"\u0000", "|\u0002\u0000\u0000\"MiniProgramError\\nCannot read property 'now' of undefined\\nTypeError: Cannot read property 'now' of undefined\\n at Object.<anonymous> (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:10312:91)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Module._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at t (https://usr/app-service.js:)\"\u0000"
定位了下代码
相关平台
微信小程序
小程序基础库: 1.4.1
使用框架: React
复现步骤
有部分用户会报异常
堆栈信息(去掉了行列号)
"|\u0002\u0000\u0000\"MiniProgramError\\nCannot read property 'now' of undefined\\nTypeError: Cannot read property 'now' of undefined\\n at Object.<anonymous> (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Module._ (https://usr/app-service.js:25254:14)\\n at l (https://usr/app-service.js:)\\n at t (https://usr/app-service.js:)\"\u0000", "|\u0002\u0000\u0000\"MiniProgramError\\nCannot read property 'now' of undefined\\nTypeError: Cannot read property 'now' of undefined\\n at Object.<anonymous> (https://usr/app-service.js:)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:10312:91)\\n at Object._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at Module._ (https://usr/app-service.js:)\\n at l (https://usr/app-service.js:)\\n at t (https://usr/app-service.js:)\"\u0000"
定位了下代码
__Date.now 这里报错了
之前有个 issue #8327 提到了这个问题,我不太确定是不是同一个原因,应为只有一部分用户有报错。
期望结果
不报错
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: