-
Notifications
You must be signed in to change notification settings - Fork 13
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
Uncaught TypeError when using this plugin #16
Comments
I have same issue, and figured out that , number: function(max) {
return Math.floor(Math.random() * max);
}
, numberString: function(max) {
var t = ('' + (max - 1)).length;
var p = new Array(t + 1).join('0');
return (p + this.number(max)).slice(-t);
} After the common-shake plugin above code is transformed as: , "number": ((function(max) {
return Math.floor(Math.random() * max);
}),null) which |
👍 That's exactly the same problem I have. It seems that the comma operator shouldn't be here. |
Hello! I'll take a look at it later this week. It has nothing to do with reserved words, however, as The way it adds comma and Will see what's the underlying problem a bit later. Thanks for reporting! |
Hello @indutny thanks for all the work you have done so far! It definitely helped me a lot! But starting from today, i started to encounter this issue as well. Do you have any updates regarding this problem? |
I'm working on a starter for React + ReasonML + webpack. I wanted to use webpack-common-shake plugin. Unfortunately, when enabled, I get this TypeError:
How to reproduce?
npm install
npm start
Expected result:
You can see
Hello world, Anne!
in the browser. No errors in the consoleCurrent result:
Workaround:
Disable
webpack-common-shake
plugin in webpack.config.jsThe text was updated successfully, but these errors were encountered: