好久没有调试小程序了,大概一年前传上去的,都发布了
现在编译出现这个错误,找了半天没找到问题,请教各位大佬
0:1 (in promise) MiniProgramError
t is not a function. (In 't(a.ErrorCode.ok)', 't' is undefined)
TypeError: t is not a function. (In 't(a.ErrorCode.ok)', 't' is undefined)
@https://usr//app-service.js:1726:13025
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
anonymous@[native code]
@https://usr//app-service.js:1726:14029
@https://usr//app-service.js:1673:2586
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
s@[native code]
s@https://usr//app-service.js:1673:2836
@https://usr//app-service.js:1673:8248
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
anonymous@[native code]
_tmp12@https://usr//app-service.js:1673:8692
@https://usr//app-service.js:1673:4382
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
anonymous@[native code]
@https://usr//app-service.js:1673:4447
@https://usr//app-service.js:1641:432
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
n@[native code]
n@https://usr//app-service.js:1641:729
@https://usr//app-service.js:1641:1415
@[native code]
h@https://lib/WAServiceMainContext.js:1:41822
c@[native code]
c@https://usr//app-service.js:1641:1474
q@https://lib/WASubContext.js:1:71030
@https://lib/WASubContext.js:1:71252
C@https://lib/WASubContext.js:1:40729
@https://lib/WASubContext.js:1:54551
I@https://lib/WASubContext.js:1:54320
@https://lib/WASubContext.js:1:54358
f@https://lib/WASubContext.js:1:163803
@https://lib/WASubContext.js:1:126912
@https://lib/WASubContext.js:1:159135
p@https://lib/WAServiceMainContext.js:1:399780
@https://lib/WAServiceMainContext.js:1:387782
_onNativeTimer@
global code@
global @ 0:1
重启小程序开发工具,关闭package.JSON里面的mini,看看,具体哪一行出错
检查有什么函数是可能不存在的,这代码明显被压缩过了,开启sourcemap调试
在代码中使用了一个未定义的函数
t