This repository was archived by the owner on Apr 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
React transforms being run on Backbone views #78
Comments
Can you show the relevant code? |
@gaearon So it's in a private repo but I made a more isolated case here: https://github.com/redwoodfavorite/react-backbone-hmr I couldn't actually recreate the issue until I put a |
This looks like a problem with an overly broad check in https://github.com/gaearon/babel-plugin-react-transform. Can you please file it there? The best way to file it would be with a failing test but if you don't have time just creating the issue with a link to your project would be great. |
We are having similar problem with ember. Opened an issue for it here #81 |
I think I know what the problem is. |
Should be fixed in 2.0.1. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue seems to be closely related to #26
Basically I ran into this issue where I would get a
TypeError
in a Backbone constructor only when I was running our hot config. The constructor for this backbone view is on the prototype of another view and was being used like this:const someView = new this.SomeViewConstructor();
Turns out the context in
SomeViewConstructor
was aproxiedMethod
. Apparently this constructor is being wrapped byreact-proxy
even though this module did not export a react component.The text was updated successfully, but these errors were encountered: