-
Notifications
You must be signed in to change notification settings - Fork 23
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
Does not catch errors inside components that are decorated #20
Comments
This is the full project I'm using, to reproduce. https://github.com/qimingweng/react-transform-catch-errors-bug |
Decorators are not yet supported in Babel 6. Track https://phabricator.babeljs.io/T2645 |
@thejameskyle I see. I was using https://www.npmjs.com/package/babel-plugin-transform-decorators-legacy to get the decorators to work again. I have two questions, if you'll indulge me:
|
And side note, changing the syntax from decorator to regular function application does indeed allow this package to work again. |
That's not really how it works, all plugins get run at the same time |
@thejameskyle Thanks for clearing that up. Reading https://phabricator.babeljs.io/T6730 it makes a lot more sense now. |
This is interesting, I have been debugging this for a while, but I've noticed that when a component is wrapped by a decorator, thrown errors in its render function do not get caught!
This is my babel config:
The text was updated successfully, but these errors were encountered: