-
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
Doesn't work when used together with babel-plugin-transform-decorators-legacy #26
Comments
Would you like to take a stab at fixing this? I would presume that using |
The good news is that, yes, it did the trick) The bad news is that I have absolutely no idea, what's going on here :) So, of course I can just submit a PR without digging into this, but it would be awesome if you could give me some hints) Do you have any idea where does this error come from? Why does render property on ReactClass prototype become unwritable? |
I would suggest you to refer to
My guess is that some of the decorators you use return a Finally, I wouldn’t recommend using decorators before you have a good idea about how they work. Understanding |
Yes, you're right, it's autobind-decorator, that redefines render property. Now I get it. Thank you. I'll submit PR with a fix tomorrow. |
Yep, I know that both transforms are use-on-your-own-risk kind of thing) But just FYI, these transforms don't work together. You get this error in console:
removing either babel-plugin-transform-decorators-legacy or react-transform-catch-errors fixes the issue.
The text was updated successfully, but these errors were encountered: