npm 包引入后导致循环调用
小程序里引入 npm 包后,上线后小程序一直报错 Maximum call stack size exceeded 是不是引入的包里面造成的循环? [代码] [代码] [代码]const CryptoJs = require('crypto-js')[代码] [代码] [代码] [代码]const key = CryptoJS.enc.Utf8.parse(xxxx)[代码] [代码] [代码][代码]if[代码] [代码](url && url.indexOf(xxx) >= 0) {[代码][代码] [代码][代码]let decRes = CryptoJS.AES.decrypt(res.data, key, {[代码][代码] [代码][代码]mode: CryptoJS.mode.ECB,[代码][代码] [代码][代码]padding: CryptoJS.pad.Pkcs7[代码][代码] [代码][代码]})[代码][代码] [代码][代码]decRes = decRes.toString(CryptoJS.enc.Utf8)[代码] [代码] [代码][代码]return[代码] [代码]decRes[代码][代码] [代码][代码]}[代码] 经过错误收集,全部是安卓手机的报错。是不是安卓手机不支持引入 npm 包加载呢? [图片] [图片]