{"action":"created","issue":{"url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/21","labels_url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/21/comments","events_url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/21/events","html_url":"https://github.com/power-assert-js/espower-babel/issues/21","id":116117222,"number":21,"title":"An error on babel6","user":{"login":"zakuro9715","id":3257770,"avatar_url":"https://avatars.githubusercontent.com/u/3257770?v=3","gravatar_id":"","url":"https://api.github.com/users/zakuro9715","html_url":"https://github.com/zakuro9715","followers_url":"https://api.github.com/users/zakuro9715/followers","following_url":"https://api.github.com/users/zakuro9715/following{/other_user}","gists_url":"https://api.github.com/users/zakuro9715/gists{/gist_id}","starred_url":"https://api.github.com/users/zakuro9715/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakuro9715/subscriptions","organizations_url":"https://api.github.com/users/zakuro9715/orgs","repos_url":"https://api.github.com/users/zakuro9715/repos","events_url":"https://api.github.com/users/zakuro9715/events{/privacy}","received_events_url":"https://api.github.com/users/zakuro9715/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T14:26:53Z","updated_at":"2015-11-13T05:44:57Z","closed_at":null,"body":"\r\nI found an error on babel6 project. Please see the example project.\r\n\r\nhttps://github.com/zakuro9715/espower-babel-babel6-error-example\r\n\r\nOn babel5\r\n\r\n```\r\n$ npm run test\r\n\r\n> @ test /home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel5\r\n> mocha --compilers js:espower-babel/guess test/add.test.js\r\n\r\n\r\n\r\n  add\r\n    ✓ should returns result of A plus B\r\n\r\n\r\n  1 passing (8ms)\r\n```\r\n\r\nOn babel6\r\n\r\n```\r\n$ npm run test\r\n\r\n> @ test /home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6\r\n> mocha --compilers js:espower-babel/guess test/add.test.js\r\n\r\n/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/logger.js:58\r\n    throw new Constructor(this._buildMessage(msg));\r\n    ^\r\n\r\nReferenceError: [BABEL] /home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/test/add.test.js: Unknown option: direct.presets\r\n    at Logger.error (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/logger.js:58:11)\r\n    at OptionManager.mergeOptions (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)\r\n    at OptionManager.init (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/options/option-manager.js:216:10)\r\n    at File.initOptions (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/index.js:147:75)\r\n    at new File (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/file/index.js:137:22)\r\n    at Pipeline.transform (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/babel-core/lib/transformation/pipeline.js:164:16)\r\n    at Object.extensions.(anonymous function) [as .js] (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/espower-babel/index.js:56:28)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at /home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/mocha/lib/mocha.js:216:27\r\n    at Array.forEach (native)\r\n    at Mocha.loadFiles (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/mocha/lib/mocha.js:213:14)\r\n    at Mocha.run (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/mocha/lib/mocha.js:453:10)\r\n    at Object.<anonymous> (/home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/node_modules/mocha/bin/_mocha:393:18)\r\n    at Module._compile (module.js:425:26)\r\n    at Object.Module._extensions..js (module.js:432:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Function.Module.runMain (module.js:457:10)\r\n    at startup (node.js:136:18)\r\n    at node.js:972:3\r\n\r\nnpm ERR! Linux 4.2.0-1-amd64\r\nnpm ERR! argv \"/home/zakuro/.nvm/versions/node/v5.0.0/bin/node\" \"/home/zakuro/.nvm/versions/node/v5.0.0/bin/npm\" \"run\" \"test\"\r\nnpm ERR! node v5.0.0\r\nnpm ERR! npm  v3.3.6\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! @ test: `mocha --compilers js:espower-babel/guess test/add.test.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @ test script 'mocha --compilers js:espower-babel/guess test/add.test.js'.\r\nnpm ERR! This is most likely a problem with the  package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     mocha --compilers js:espower-babel/guess test/add.test.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls \r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/zakuro/src/github.com/zakuro9715/espower-babel-babel6-error-example/babel6/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/comments/156329029","html_url":"https://github.com/power-assert-js/espower-babel/issues/21#issuecomment-156329029","issue_url":"https://api.github.com/repos/power-assert-js/espower-babel/issues/21","id":156329029,"user":{"login":"azu","id":19714,"avatar_url":"https://avatars.githubusercontent.com/u/19714?v=3","gravatar_id":"","url":"https://api.github.com/users/azu","html_url":"https://github.com/azu","followers_url":"https://api.github.com/users/azu/followers","following_url":"https://api.github.com/users/azu/following{/other_user}","gists_url":"https://api.github.com/users/azu/gists{/gist_id}","starred_url":"https://api.github.com/users/azu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azu/subscriptions","organizations_url":"https://api.github.com/users/azu/orgs","repos_url":"https://api.github.com/users/azu/repos","events_url":"https://api.github.com/users/azu/events{/privacy}","received_events_url":"https://api.github.com/users/azu/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T05:44:57Z","updated_at":"2015-11-13T05:44:57Z","body":"babel-plugin-espower [v2.0.0](https://github.com/power-assert-js/babel-plugin-espower/releases/tag/v2.0.0 \"v2.0.0\") is released. it support Babel 6.\r\n\r\nWe'll update espower-babel too."}}