I am trying to configure webpack and had everything up and running, but am now getting this same error. I\'ve combed through a few other posts that seem to have been resolved by
You are using ES6 version of Javascript. You need preset config in webpack to understand and transpile that.
Can you try adding following to your webpack module config?
loaders : [
{
test:/\.jsx?$/,
exclude:/node_modules/,
loader: 'babel-loader',
query:{
presets: ['es2015','react','stage-0']
}
},
// ...
]