While installing aws-sdk in webpack by following the official site, I encountered this kind of error:
You may need an additional loader to handle the result of these loaders. SyntaxError: Unexpected token m in JSON at position 0 while parsing near 'module.exports = {"v...'
It seems there was some error during the webpack bundling process.
{
type: 'javascript/auto',
test: /\.json$/,
loader: 'json-loader',
}