charleslo1 / weapp-cookie

一行代码让微信、头条、百度、支付宝小程序支持 cookie,兼容 uni-app 🍪🚀 One line of code allows weapp to support cookie(wx weixin wxapp cookie)
MIT License
829 stars 98 forks source link

小程序uni.uploadFile ios兼容报错问题 版本"weapp-cookie": "^1.4.8" #69

Open DudleyLi opened 3 months ago

DudleyLi commented 3 months ago

MiniProgramError r.replace is not a function. (In 'r.replace(/\;([^\s\;]?(?=\=))/gi,",$1")', 'r.replace' is undefined) TypeError: r.replace is not a function. (In 'r.replace(/\;([^\s\;]?(?=\=))/gi,",$1")', 'r.replace' is undefined) at (appservice.app.js:173:145938) at (WAServiceMainContext.js:1:934468) at at Vc (WAServiceMainContext.js:1:660474) at (WAServiceMainContext.js:1:839991) at at nv (WAServiceMainContext.js:1:772138) at forEach (native code) at emit (WAServiceMainContext.js:1:772779) at c (WAServiceMainContext.js:1:841457) at BS (WAServiceMainContext.js:1:842804) at (WAServiceMainContext.js:1:843420) at (WAServiceMainContext.js:1:634748) at (WAServiceMainContext.js:1:625380) at emit (WAServiceMainContext.js:1:119586) at emit (native code) at emit (WAServiceMainContext.js:1:119205) at subscribeHandler (WAServiceMainContext.js:1:125589)

DudleyLi commented 3 months ago

找到报错的源头了 image