Skip to content
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

Runtime error after compiling React #592

Closed
hph opened this issue Jun 20, 2017 · 3 comments
Closed

Runtime error after compiling React #592

hph opened this issue Jun 20, 2017 · 3 comments

Comments

@hph
Copy link

hph commented Jun 20, 2017

I ran into an issue yesterday where I got runtime errors logged to the console in React event handlers. This only happens when the code is compiled in production mode (using Babili). I managed to work around the issue by simply not compiling the React files and using the provided minified files.

I've created a tiny repository with a minimal example with everything needed to reproduce the issue plus a workaround here. This is what you'll get if you build the app:

screen shot 2017-06-20 at 20 05 06

Now, I'm not entirely sure whether this is really a bug in Babili or whether it might be something else, but it appears to be the case.

@vigneshshanmugam
Copy link
Member

There was an issue with webpack 3 #590 which should be fixed with the latest release https://github.com/babel/babili/releases/tag/babili%400.1.4

@hph
Copy link
Author

hph commented Jun 21, 2017

@vigneshshanmugam I'm happy to report that by updating to 0.1.4 everything works! Thank you for the help!

@hph hph closed this as completed Jun 21, 2017
@vigneshshanmugam
Copy link
Member

@hph Cool. thanks for the info 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants