CNode

babel转译问题,在线等。

问答
GGit-CodeTiger发布于10 年前最后回复10 年前1 回复4875 浏览0 收藏

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

Z
zp1112#1·10 年前

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

这里

参与回复
登录后即可参与回复。登录