erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

Integrating the aws-sdk #1312

Open manubhat90 opened 7 years ago

manubhat90 commented 7 years ago

Has anyone been able to successfully integrate the aws-sdk (js/node) with this boilerplate? It works fine on the server but doesn't on the client side. It looks like isn't being bundled properly so I'm assuming its an issue with webpack or webpackisomorphictools.

The aws-sdk has always had an issue with webpack, discussed here: https://github.com/aws/aws-sdk-js/issues/603

That was fixed with this recent update: https://aws.amazon.com/blogs/developer/using-webpack-and-the-aws-sdk-for-javascript-to-create-and-bundle-an-application-part-1/

Currently I'm using the below workaround: https://github.com/aws/aws-sdk-js/pull/1116/commits/cc6e00c8ef990bc8745cef21d03c8bd29a6466f4

Does anyone have a solution to this or a better understanding of the problem?

Thanks