babel转译问题,在线等。
发布于 9 年前 作者 Git-CodeTiger 4676 次预览 最后一次回复是 9 年前 来自 问答
代码中了大量的ES6,7的语法,通过bable转译,通过supervisor…能运行的,但是运行编译后的代码有个错误。 错误: The sql: stucollection.likeName not exists! [TypeError: Cannot read property ‘Symbol(Symbol.iterator)’ of undefined]
1 回复
可以考虑使用babel-plugin-transform-runtime
// with options { “plugins”: [ [“transform-runtime”, { “helpers”: false, // defaults to true "polyfill": false, // defaults to true "regenerator": true // defaults to true }] ] }
这里