Giter VIP home page Giter VIP logo

Comments (14)

ihle avatar ihle commented on May 19, 2024 4

For what it's worth, I managed to work around the issue in UglifyJS by excluding variables called "exports" from the mangler, e.g. mangle: { except: ['exports'] }

from react-redux-bootstrap-webpack-starter.

Enase avatar Enase commented on May 19, 2024 2

Hi guys,

I've had totally the same trouble, so now I can share with u details.
The reason is UglifyJsPlugin. Try to disable the plugin or setup it in a way to skip/exclude aws sdk.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

I'm sorry I don't know about aws-sdk.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

Isn't it due to global variable?

Feel free to share your experience with AWS.

I never say no to new information

from react-redux-bootstrap-webpack-starter.

jonathanmv avatar jonathanmv commented on May 19, 2024

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.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

I stay tuned.

If I have to use AWS before (not planned right now) I will give a feedback.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

@Enase thank you for taking time sharing.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

By the way, does still occurred with latest version?

I remember I removed UglifyJs from webpack configs.

from react-redux-bootstrap-webpack-starter.

cskeppstedt avatar cskeppstedt commented on May 19, 2024

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.

from react-redux-bootstrap-webpack-starter.

MacKentoch avatar MacKentoch commented on May 19, 2024

Thank you @cskeppstedt for sharing your experience 👍 +1

So I close this issue and I'm sorry not to have solutions to offer.

from react-redux-bootstrap-webpack-starter.

prateekro avatar prateekro commented on May 19, 2024

@Enase What did you do to skip/exclude aws sdk to let go off this error?

from react-redux-bootstrap-webpack-starter.

asharafshahi avatar asharafshahi commented on May 19, 2024

I tried the suggestion of using the mangle: { except: ['exports'] } but it did not solve this issue. How would one confirm that the right things happened? Any other suggestion for how to work around this... such as how to exclude the aws sdk? -thx

from react-redux-bootstrap-webpack-starter.

Enase avatar Enase commented on May 19, 2024

@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?

from react-redux-bootstrap-webpack-starter.

janhoeck avatar janhoeck commented on May 19, 2024

I have to same problem in all my project, where I am using the UglifyPlugin and the aws-sdk.
After removing the aws-sdk, all works fine.

from react-redux-bootstrap-webpack-starter.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.