有开发者提过该问题,但至今尚未修复:
- 今年1月份:https://developers.weixin.qq.com/community/develop/doc/000a0a189f47c0ff266d753bb5bc00?highLine=sourcemap%2520%25E4%25B8%25BB%25E5%258C%2585%25E8%25A7%25A3%25E6%259E%2590%2520null
- 去年9月份:https://developers.weixin.qq.com/community/develop/doc/000288fd5e0608d49dcc2476a5b400?highLine=sourcemap%2520%25E4%25B8%25BB%25E5%258C%2585%25E8%25A7%25A3%25E6%259E%2590%2520null
问下,在该Bug修复前,作为开发者的我们,有退一步的解决方案吗?
主包是对应 __APP__ 目录下的 map 文件
问下,在该Bug修复前,作为开发者的我们,有退一步的解决方案吗?
官方什么时候能解决source map这个问题?
楼主有解决吗 我也遇到这样的问题了 定位错误点 全是为匹配到结果
分包没问题,就主包有问题。
小程序代码的上传时间:2022-06-06 15:27
顺便补充一下,这个版本,主包错误堆栈,行号都是:9598。十分诡异。
## 案例1
小程序 appid: wxb795989748ca0282
小程序版本号: 2.24.5
报错内容:
@https://usr//app-service.js:9598:79354
n@https://usr//app-service.js:9598:429300
u@https://lib/WASubContext.js:2:119183
@https://lib/WASubContext.js:2:90580
@https://lib/WASubContext.js:2:112414
d@https://lib/WAServiceMainContext.js:2:115044
@https://lib/WAServiceMainContext.js:2:103809
_onNativeTimer@
global code@
## 案例2
小程序 appid: wx4a6d75d098b41a47
小程序版本号: 2.24.4
报错内容:
s@https://usr//app-service.js:9598:120740
@https://lib/WASubContext.js:2:47324
n@https://lib/WASubContext.js:2:24201
@https://lib/WASubContext.js:2:34648
E@https://lib/WASubContext.js:2:34373
@https://lib/WASubContext.js:2:34411
n@https://usr//app-service.js:9598:429300
u@https://lib/WASubContext.js:2:119183
@https://lib/WASubContext.js:2:90580
@https://lib/WASubContext.js:2:112414
d@https://lib/WAServiceMainContext.js:2:115044
@https://lib/WAServiceMainContext.js:2:103809
_onNativeTimer@
global code@
## 案例3
小程序 appid: wx68b57119a1f566c3
小程序版本号: 2.24.5
报错内容:
TypeError: Cannot read property 'vm' of undefined
at Function.<anonymous> (https://usr/app-service.js:9598:79355)
at Function.n (https://usr/app-service.js:9598:429295)
at u (https://lib/WASubContext.js:2:119178)
at https://lib/WASubContext.js:2:119628
at Function.<anonymous> (https://lib/WASubContext.js:2:90575)
at Function.<anonymous> (https://lib/WASubContext.js:2:112409)
## 案例4
小程序 appid: wx2a2b1ab3492bf23b
小程序版本号: 2.24.5
报错内容:
https://usr//packages/trade/app-service.js:14482:179061
v@https://usr//app-service.js:9598:475472
https://usr//app-service.js:9598:475222
r@https://usr//app-service.js:9598:395261
s@https://usr//app-service.js:9598:395465
https://usr//app-service.js:9598:395524
W@https://lib/WASubContext.js:2:48558
https://usr//app-service.js:9598:395415
handleOrderClick@[native code]
https://lib/WASubContext.js:2:579040
https://lib/WASubContext.js:2:445700
https://lib/WASubContext.js:2:445481
r@https://lib/WASubContext.js:2:449290
https://lib/WASubContext.js:2:450028
l@https://lib/WASubContext.js:2:448747
https://lib/WASubContext.js:2:449875
https://lib/WASubContext.js:2:450143
https://lib/WASubContext.js:2:474015
handleOrderClick@https://usr//packages/trade/app-service.js:14644:2584
https://lib/WASubContext.js:2:579040
https://lib/WASubContext.js:2:445700
https://lib/WASubContext.js:2:445481
r@https://lib/WASubContext.js:2:449290
https://lib/WASubContext.js:2:450028
l@https://lib/WASubContext.js:2:448747
https://lib/WASubContext.js:2:449875
https://lib/WASubContext.js:2:450143
https://lib/WASubContext.js:2:474015
handleOrderClick@https://usr//packages/trade/app-service.js:14650:862
https://lib/WASubContext.js:2:445700
https://lib/WASubContext.js:2:628146
Or@https://lib/WASubContext.js:2:576520
https://lib/WASubContext.js:2:628022
h@https://lib/WASubContext.js:2:529102
https://lib/WASubContext.js:2:529410
https://lib/WAServiceMainContext.js:2:629178
k@https://lib/WAServiceMainContext.js:2:70644
global code