Comments (14)
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.
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.
I'm sorry I don't know about aws-sdk.
from react-redux-bootstrap-webpack-starter.
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.
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.
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.
@Enase thank you for taking time sharing.
from react-redux-bootstrap-webpack-starter.
By the way, does still occurred with latest version?
I remember I removed UglifyJs from webpack configs.
from react-redux-bootstrap-webpack-starter.
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.
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.
@Enase What did you do to skip/exclude aws sdk to let go off this error?
from react-redux-bootstrap-webpack-starter.
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.
@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.
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)
- npm run dev has erros HOT 4
- Hot reload not working HOT 2
- Add proxy
- 16.0 HOT 3
- SCRIPT5022: Minified React error #31 in IE11 HOT 4
- npm install error HOT 12
- PageNotFound file name case inconsistent
- Could not start app HOT 5
- loadable-components isn't working
- HI,My friend,I like your works very very much HOT 2
- CSS Modules Enabled HOT 2
- Why React and jquery? HOT 4
- couldn't require image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-redux-bootstrap-webpack-starter.