CC @Chen-jj
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
beta.5
TypeError: Function(...) is not a function
at Object.
at Object.node_modulesRegeneratorRuntimeRuntimeJs (vendors.js:2844)
at __webpack_require__ (runtime.js:80)
at Object.node_modulesBabelRuntimeRegeneratorIndexJs (vendors.js:766)
at __webpack_require__ (runtime.js:80)
at
同报错
可以先配置一下 alias:
alias: {
'regenerator-runtime': path.resolve(__dirname, '../node_modules', 'regenerator-runtime'),
}
Taro Next 用了 babel7,@babel/runtime 使用的 regenerator-runtime 版本是 0.13,它又用了在小程序环境被 ban 了的 Function 函数。我们再讨论下怎么样指向 0.11 版本的 regenerator-runtime 包比较合理。
Most helpful comment
beta.5