{"action":"opened","issue":{"url":"https://api.github.com/repos/speedskater/babel-plugin-rewire/issues/1","labels_url":"https://api.github.com/repos/speedskater/babel-plugin-rewire/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/speedskater/babel-plugin-rewire/issues/1/comments","events_url":"https://api.github.com/repos/speedskater/babel-plugin-rewire/issues/1/events","html_url":"https://github.com/speedskater/babel-plugin-rewire/issues/1","id":75844554,"number":1,"title":"Module build failed ","user":{"login":"geekyme","id":977460,"avatar_url":"https://avatars.githubusercontent.com/u/977460?v=3","gravatar_id":"","url":"https://api.github.com/users/geekyme","html_url":"https://github.com/geekyme","followers_url":"https://api.github.com/users/geekyme/followers","following_url":"https://api.github.com/users/geekyme/following{/other_user}","gists_url":"https://api.github.com/users/geekyme/gists{/gist_id}","starred_url":"https://api.github.com/users/geekyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekyme/subscriptions","organizations_url":"https://api.github.com/users/geekyme/orgs","repos_url":"https://api.github.com/users/geekyme/repos","events_url":"https://api.github.com/users/geekyme/events{/privacy}","received_events_url":"https://api.github.com/users/geekyme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T04:40:43Z","updated_at":"2015-05-13T04:40:43Z","closed_at":null,"body":"Hello, I followed your instructions and added the required plugin webpack config to my karma config: \r\n\r\n```\r\n// use sepia to cache outgoing HTTP requests for faster tests\r\n// karma first run will break if there is no fixtures. run a second time to ensure passing.\r\n// process.env.VCR_MODE = 'cache';\r\n// require('sepia');\r\n\r\n// Karma configuration\r\n// Generated on Tue Apr 07 2015 17:34:20 GMT+0800 (SGT)\r\n\r\nmodule.exports = function(config) {\r\n  config.set({\r\n\r\n    // base path that will be used to resolve all patterns (eg. files, exclude)\r\n    basePath: '',\r\n\r\n\r\n    // frameworks to use\r\n    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter\r\n    frameworks: ['jasmine'],\r\n\r\n\r\n    // list of files / patterns to load in the browser\r\n    files: [\r\n      // we use this pattern to load test files\r\n      // see https://github.com/webpack/karma-webpack/issues/23\r\n      'tests/tests_index.js'\r\n    ],\r\n\r\n\r\n    // list of files to exclude\r\n    exclude: [\r\n    ],\r\n\r\n\r\n    // preprocess matching files before serving them to the browser\r\n    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor\r\n    preprocessors: {\r\n        'tests/tests_index.js': [ 'webpack', 'sourcemap' ]\r\n    },\r\n\r\n    webpack: { //kind of a copy of your webpack config\r\n      devtool: 'inline-source-map', //just do inline source maps instead of the default\r\n      module: {\r\n        loaders: [\r\n          { test: /\\.js$/, exclude: /node_modules/, loaders: [\"babel-loader?plugins=rewire\"] } // loaders can take parameters as a querystring\r\n        ]\r\n      }\r\n    },\r\n\r\n    webpackServer: {\r\n      noInfo: true //please don't spam the console when running in karma!\r\n    },\r\n\r\n\r\n    // test results reporter to use\r\n    // possible values: 'dots', 'progress'\r\n    // available reporters: https://npmjs.org/browse/keyword/karma-reporter\r\n    reporters: ['progress'],\r\n\r\n\r\n    // web server port\r\n    port: 9876,\r\n\r\n\r\n    // enable / disable colors in the output (reporters and logs)\r\n    colors: true,\r\n\r\n\r\n    // level of logging\r\n    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG\r\n    logLevel: config.LOG_INFO,\r\n\r\n\r\n    // enable / disable watching file and executing tests whenever any file changes\r\n    autoWatch: true,\r\n\r\n\r\n    // start these browsers\r\n    // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher\r\n    browsers: ['Chrome'],\r\n\r\n\r\n    // Continuous Integration mode\r\n    // if true, Karma captures browsers, runs the tests and exits\r\n    singleRun: false,\r\n\r\n    // we need this proxy so that the karma server will call akamaru api which is running on localhost:5000\r\n    proxies: {\r\n      '/api': 'http://localhost:5000/api'\r\n    }\r\n  });\r\n};\r\n```\r\n\r\nHowever, when i run ```karma start```, I am getting these errors: \r\n\r\n```\r\nModule build failed: TypeError: Transformer \"rewire\" is resolving to a different Babel version to what is doing the actual transformation...\r\n    at Transformer.buildPass (/Users/shawnlim/Documents/react/Boa/node_modules/babel-plugin-rewire/node_modules/babel-core/lib/babel/transformation/transformer.js:118:13)\r\n    at File.addPlugin (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/file/index.js:287:48)\r\n    at File.buildTransformers (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/file/index.js:215:12)\r\n    at new File (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/file/index.js:88:10)\r\n    at Object.transform (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/index.js:18:14)\r\n    at transpile (/Users/shawnlim/Documents/react/Boa/node_modules/babel-loader/index.js:54:24)\r\n    at Object.module.exports (/Users/shawnlim/Documents/react/Boa/node_modules/babel-loader/index.js:43:24)\r\n```"}}