shou2017.com
JP

AWS-SDK webpack Installation SyntaxError

Wed Feb 19, 2020
Sat Aug 10, 2024
AWS

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',
}

Reference

See Also