babel转译问题,在线等。
发布于 8 年前 作者 Git-CodeTiger 3660 次浏览 来自 问答

代码中了大量的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 回复

可以考虑使用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 }] ] }

这里

回到顶部