-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on production when using aws-sdk #5
Comments
I'm sorry I don't know about aws-sdk. |
Isn't it due to global variable? Feel free to share your experience with AWS. I never say no to new information |
Not sure if it has something to do with a global variable. I haven't tried to find what the issue is yet, I haven't taken the time to do it, sorry. I'll share the solution if I find it, but to be honest I won't be working on it for now. |
I stay tuned. If I have to use AWS before (not planned right now) I will give a feedback. |
Hi guys, I've had totally the same trouble, so now I can share with u details. |
@Enase thank you for taking time sharing. |
By the way, does still occurred with latest version? I remember I removed UglifyJs from webpack configs. |
Just wanted to say that I'm seeing this problem in our project (which is not related to react-redux-bootstrap-webpack-starter – we have a different webpack config all together). We're also seeing that the issue is solved by removing the UglifyJS plugin. Not uglifying the build is not really an option though, so we're trying to figure out a way to put all the AWS stuff in a separate bundle and then exclude that bundle from being uglified instead. |
Thank you @cskeppstedt for sharing your experience 👍 +1 So I close this issue and I'm sorry not to have solutions to offer. |
For what it's worth, I managed to work around the issue in UglifyJS by excluding variables called "exports" from the mangler, e.g. |
@Enase What did you do to skip/exclude aws sdk to let go off this error? |
I tried the suggestion of using the |
@prateekro Unfortunately I cannot reproduce the issue with the latest libraries, so that I cannot share or copy/paste the solution. Could you/someone share a code sample affected or steps to reproduce? |
I have to same problem in all my project, where I am using the UglifyPlugin and the aws-sdk. |
First of all, thank you very much for sharing this boilerplate. It's great
I just confirmed by cloning a fresh copy of this repo and only installing aws-sdk that
npm run serve-prod
will throw an error: TypeError: Cannot set property 'createCredentials' of undefinedI've been able to track it down to the crypo package (crypto-browserify@1.0.9) that aws-sdk uses as a dependency, but I haven't been able to solve it just yet.
I'm creating this issue so that other people know about this block and how to solve it (when solved...)
The text was updated successfully, but these errors were encountered: