Atom Quokka插件错误:导入使用ES6编写的模块时意外的令牌导入 -

时间:2017-12-11 08:58:10

标签: atom-editor wallaby.js quokka.js

我正在尝试使用WallabyJS https://github.com/wallabyjs/atom-quokka的精彩Quokka包。

我正在尝试导入ES6模块,但在Quokka控制台中一直出错:

在createScript vm.js上导入意外的令牌:56

我已尝试更新我的package.json文件并按照配置页here中的建议设置 babel:true ,但我仍然收到错误。

链接到我的package.json文件here

enter image description here

1 个答案:

答案 0 :(得分:0)

你需要在你的Quokka配置中specify react-app preset,所以你需要代替“babel:true”:

babel: {
    presets: ['react-app']
}
相关问题