This error appeared after I added the react-hot loader in an array following this tutorial: https://thoughtbot.com/blog/setting-up-webpack-for-react-and-hot-module-
react-hot
This solution worked for me:
module: { loaders:[ { test: /\.js$/, exclude: /(node_modules)/, loader: 'babel-loader' } ] }
and presets in the .babelrc
{ 'presets': ['latest', 'react', 'stage-0'] }
please refer to https://webpack.github.io/docs/usage.html