-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Production build breaks code that works in development #126
Comments
It seems to be because of babel-plugin-transform-react-constant-elements |
@hzoo Does this look like a Babel bug to you? Worth filing an issue? |
Yeah seems like it, can look at it later - looks like https://phabricator.babeljs.io/T6878, https://phabricator.babeljs.io/T7126 |
I can fix this. |
I fixed this. babel/babel#3596 |
🐈 |
PR merged. I guess this can be closed. |
We pin versions so I’d like to leave it open for posterity until we pin to the version fixing this. |
The fix is in a transitive dependecy so users will get the updated version regardless and you have no version to update as it's not a direct dependency. |
We use |
Seems like having to watch your deps more closely and releasing more often to get dep fixes out might be an implicit tradeoff for the single download and version stability from deduping and bundling all your deps. Just did a fresh install of https://npmcdn.com/[email protected]/node_modules/babel-runtime/package.json |
Released v6.12.0 with this fix https://github.com/babel/babel/releases/tag/v6.12.0 (and like @kittens said it's a fix in the |
Thank you so much! I’ll be using these for next release. |
This should be fixed in latest alpha. Please give it a try and let us know. #190 |
Works with
npm start
Breaks with
npm build
, giving Element type is invalid errorIf you rearrange the code so that AppItem is defined before App (or you use a hoisted function declaration) it works in both environments.
I suspect this has something to do with the react inline elements transformer?
The text was updated successfully, but these errors were encountered: