公式サイトを参考にしながらwebpackにaws-sdkをインストールしてたら、こんな感じのエラーが
1
| 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...'
|
どうもwebpackのバンドルの際に何かしらのエラーになったみたい。
1
2
3
4
5
| {
type: 'javascript/auto',
test: /\.json$/,
loader: 'json-loader',
}
|
参考
See Also