-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
3.1.12 breaks webpack build #1039
Comments
I confirm this issue |
Same here
|
I can confirm this issue. |
I'm having the same problem. |
Same problem :( |
Confirmed latest release broken in webpack 2.x |
same here |
Same problem with webpack build, but with slightly different message:
|
I also confirm this. |
Same problem here |
Ugh... I thought I fixed this. Sorry everyone, I'll get a PR up right away to address it |
I also confirm this problem! |
I can confirm that [email protected] fixes this issue for me. |
Phew. Sorry guys! Anybody wants to volunteer to run a webpack 1 & webpack 2 build & run to the test suite? (Sad that this is even needed...) |
I was thinking a script that runs through a small webpack build in a temp directory, and then executes the resulting bundle file to make sure there aren't any runtime errors |
Works now on my setup (on webpack 2)! thanks for the quick fix. |
Sorry guys, this still seems busted even with 3.1.13 in certain cases. We're using create-react-app. With 3.1.11 doing a production webpack build works without any errors. 3.1.13 fails to compile with the following (note, this only effects the production build since uglifyjs is barfing):
|
@lvpro, thats another issue, see mobxjs/mobx-react#272 |
Have the same issue with my production build in create-react-app
There was a PR (facebook/create-react-app#2485) in create-react-app to remove the
|
Hmmm per that article it would seem that the TypeScript compilation target should be changed from |
@rossipedia was just looking into that as well :). Could someone try whether |
Moving from 3.1.13 to 3.1.13-fixcra fixed my webpack 2 issue, although I don't use CRA. |
@mweststrate I've verified that 3.1.13 breaks production CRA build. I've also verified that changing the target of the module build to |
If I understand webpack/webpack#1979 correctly, esnext field could be used for the ES2015/ESModule target. Just pushed a config change to use ES5 in |
Yeah, per this blog post that would be the way to go. Including untranspiled sources might not be a huge priority at the moment though, as it's a bit too early to tell whether |
@mweststrate 3.1.13-fixcra works for me :) |
Released 3.1.14. Please let us know if this causes trouble again! |
Working for 3.1.11, broken for 3.1.12
Webpack does not emit any errors at build time, but the code will not run:
The emitted code looks like this:
exports is not defined.
Webpack configuration excerpt:
All our code is contained in a folder called node_modules, not sure if that's relevant. Edit: probably not
I'm guessing this is caused by 823b713
(#1027) @rossipedia
The text was updated successfully, but these errors were encountered: