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]

求解!!代码地址:https://coding.net/u/x_zhaohu/p/learnBackbone/git

1 回复
zp1112

可以考虑使用babel-plugin-transform-runtime

// without options { “plugins”: [“transform-runtime”] }

// with options { “plugins”: [ [“transform-runtime”, { “helpers”: false, // defaults to true "polyfill": false, // defaults to true "regenerator": true // defaults to true }] ] }

这里