Open AsaYao opened 3 years ago
在开发工具基础库2.17.3以下是可以直接运行的, 但是在2.17.3以上就直接报错了。
TypeError: Function(...) is not a function
检查一下哪里用到了吧。
TypeError: Function(...) is not a function
检查一下哪里用到了吧。
Function("r", "regeneratorRuntime = r")(runtime); 貌似是这个地方 在/regenerator-runtime/runtime.js 下面 747行
相关平台
微信小程序
小程序基础库: 2.17.3 使用框架: React
复现步骤
打开直接编译
期望结果
正常运行
实际结果
TypeError: Function(...) is not a function at Object. (vendors.js?t=wechat&s=1630052072971&v=51e6a5e98eaab851d9eb6bb9a6491eff:26996)
at Object../node_modules/regenerator-runtime/runtime.js (vendors.js?t=wechat&s=1630052072971&v=51e6a5e98eaab851d9eb6bb9a6491eff:26998)
at webpack_require__ (runtime.js?t=wechat&s=1630052072971&v=1d0d5ed55d2c0bedf0abc157370cc274:80)
at Object../node_modules/babel-runtime/regenerator/index.js (vendors.js?t=wechat&s=1630052072971&v=51e6a5e98eaab851d9eb6bb9a6491eff:867)
at webpack_require (runtime.js?t=wechat&s=1630052072971&v=1d0d5ed55d2c0bedf0abc157370cc274:80)
at Object../src/services/index.js (app.js?t=wechat&s=1630052072971&v=c5dafca5db1f8b1bd180e42b1d61ef50:423)
at webpack_require (runtime.js?t=wechat&s=1630052072971&v=1d0d5ed55d2c0bedf0abc157370cc274:80)
at Object../src/store/main.ts (app.js?t=wechat&s=1630052072971&v=c5dafca5db1f8b1bd180e42b1d61ef50:981)
at webpack_require__ (runtime.js?t=wechat&s=1630052072971&v=1d0d5ed55d2c0bedf0abc157370cc274:80)
at Object../node_modules/@tarojs/mini-runner/dist/loaders/wxTransformerLoader.js?!./src/app.tsx?taro&type=script&parse=ENTRY& (app.js?t=wechat&s=1630052072971&v=c5dafca5db1f8b1bd180e42b1d61ef50:30)(env: macOS,mp,1.05.2105100; lib: 2.14.1)
环境信息