{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/karma-webpack/issues/96","repository_url":"https://api.github.com/repos/webpack/karma-webpack","labels_url":"https://api.github.com/repos/webpack/karma-webpack/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/webpack/karma-webpack/issues/96/comments","events_url":"https://api.github.com/repos/webpack/karma-webpack/issues/96/events","html_url":"https://github.com/webpack/karma-webpack/issues/96","id":120329423,"number":96,"title":"Phantomjs Parse error","user":{"login":"mmahalwy","id":3749095,"avatar_url":"https://avatars.githubusercontent.com/u/3749095?v=3","gravatar_id":"","url":"https://api.github.com/users/mmahalwy","html_url":"https://github.com/mmahalwy","followers_url":"https://api.github.com/users/mmahalwy/followers","following_url":"https://api.github.com/users/mmahalwy/following{/other_user}","gists_url":"https://api.github.com/users/mmahalwy/gists{/gist_id}","starred_url":"https://api.github.com/users/mmahalwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmahalwy/subscriptions","organizations_url":"https://api.github.com/users/mmahalwy/orgs","repos_url":"https://api.github.com/users/mmahalwy/repos","events_url":"https://api.github.com/users/mmahalwy/events{/privacy}","received_events_url":"https://api.github.com/users/mmahalwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-04T04:16:32Z","updated_at":"2016-03-28T17:45:32Z","closed_at":null,"body":"I keep getting this error\r\n```\r\nPhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR\r\n  SyntaxError: Parse error\r\n  at /Users/mmahalwy/Sites/sparrow/tests.webpack.js:59415 <- webpack:///~/qs/lib/index.js:5:0\r\n\r\nFinished in 0.272 secs / 0 secs\r\n```\r\n\r\nWith config:\r\n```\r\nvar webpack = require('webpack');\r\nvar path = require('path');\r\nvar rootDir = path.resolve(__dirname, '.');\r\nrequire('app-module-path').addPath(rootDir);\r\nrequire('app-module-path').addPath('../src');\r\n\r\nmodule.exports = function (config) {\r\n  config.set({\r\n\r\n    browsers: ['Chrome'],\r\n\r\n    singleRun: !!process.env.CONTINUOUS_INTEGRATION,\r\n\r\n    frameworks: [ 'mocha', 'chai', 'chai-sinon' ],\r\n\r\n    files: [\r\n      './node_modules/phantomjs-polyfill/bind-polyfill.js',\r\n      'tests.webpack.js'\r\n    ],\r\n\r\n    preprocessors: {\r\n      'tests.webpack.js': [ 'webpack', 'sourcemap' ]\r\n    },\r\n\r\n    reporters: [ 'mocha', 'coverage' ],\r\n\r\n    plugins: [\r\n      require(\"karma-webpack\"),\r\n      require(\"karma-mocha\"),\r\n      require(\"karma-chai\"),\r\n      require(\"karma-chai-sinon\"),\r\n      require(\"karma-mocha-reporter\"),\r\n      require(\"karma-phantomjs-launcher\"),\r\n      require(\"karma-chrome-launcher\"),\r\n      require(\"karma-sourcemap-loader\"),\r\n      require(\"karma-coverage\")\r\n    ],\r\n\r\n    webpack: {\r\n      devtool: 'inline-source-map',\r\n      module: {\r\n        // TODO: When using babel 6 throughout the probject.\r\n        // preLoaders: [\r\n               // transpile all files except testing sources with babel as usual\r\n              //  {\r\n              //      test: /\\.js$/,\r\n              //      exclude: [\r\n              //          path.resolve('./src/'),\r\n              //          path.resolve('node_modules/')\r\n              //      ],\r\n              //      loader: 'babel?' + JSON.stringify(babelLoaderQuery)\r\n              //  },\r\n               // transpile and instrument only testing sources with isparta\r\n              //  {\r\n              //      test: /\\.js$/,\r\n              //      loader: 'isparta'\r\n              //  }\r\n          //  ],\r\n        loaders: [\r\n          { test: /\\.(jpe?g|png|gif|svg)$/, loader: 'url', query: {limit: 10240} },\r\n          { test: /\\.js$/, exclude: /node_modules/, loaders: ['babel']},\r\n          { test: /\\.json$/, loader: 'json-loader' },\r\n          { test: /\\.scss$/, loader: 'style!css?modules&importLoaders=2&sourceMap&localIdentName=[local]___[hash:base64:5]!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded&sourceMap' }\r\n        ]\r\n      },\r\n      resolve: {\r\n        modulesDirectories: [\r\n          'src',\r\n          'node_modules'\r\n        ],\r\n        extensions: ['', '.json', '.js']\r\n      },\r\n      plugins: [\r\n        new webpack.IgnorePlugin(/\\.json$/),\r\n        new webpack.NoErrorsPlugin(),\r\n        new webpack.DefinePlugin({\r\n          __CLIENT__: true,\r\n          __SERVER__: false,\r\n          __DEVELOPMENT__: true,\r\n          __DEVTOOLS__: false  // <-------- DISABLE redux-devtools HERE\r\n        })\r\n      ],\r\n    },\r\n\r\n    webpackServer: {\r\n      noInfo: true\r\n    }\r\n\r\n  });\r\n};\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/karma-webpack/issues/comments/202503107","html_url":"https://github.com/webpack/karma-webpack/issues/96#issuecomment-202503107","issue_url":"https://api.github.com/repos/webpack/karma-webpack/issues/96","id":202503107,"user":{"login":"necolas","id":239676,"avatar_url":"https://avatars.githubusercontent.com/u/239676?v=3","gravatar_id":"","url":"https://api.github.com/users/necolas","html_url":"https://github.com/necolas","followers_url":"https://api.github.com/users/necolas/followers","following_url":"https://api.github.com/users/necolas/following{/other_user}","gists_url":"https://api.github.com/users/necolas/gists{/gist_id}","starred_url":"https://api.github.com/users/necolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necolas/subscriptions","organizations_url":"https://api.github.com/users/necolas/orgs","repos_url":"https://api.github.com/users/necolas/repos","events_url":"https://api.github.com/users/necolas/events{/privacy}","received_events_url":"https://api.github.com/users/necolas/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T17:45:31Z","updated_at":"2016-03-28T17:45:31Z","body":"The latest version of `qs` fixed this"}}