引入regenerator-runtime/runtime.js报错
发布于 5 年前 作者 xiuyingdong 2820 次浏览 来自 问答

使用  import regeneratorRuntime from ‘./…/…/utils/regenerator-runtime/runtime.js’;

或者使用  const regeneratorRuntime= require(’./…/…/utils/regenerator-runtime/runtime.js’)

在使用async await时回报

VM4677:1 thirdScriptError 

 sdk uncaught third Error 

 Function(…) is not a function 

 TypeError: Function(…) is not a function

Page is not constructed because it is not found.

的错误,请问应该怎么解决?

1 回复

从我们线上运行的结果来看,不支持原生async/await的手机型号已经没有了(或者少到我们发现不了了),所以已经没理由再用es5下的async/await了,放弃它吧。

回到顶部