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
"Cannot set property" error on React class component method #32
Comments
Just started getting this issue as well - no idea what's triggered the change. The only thing I did was extract a class into its own file, but I don't think that caused it. |
@InfernoZeus what version of React are you using? Wondering if component classes changed something internally recently. Or maybe how Babel handles classes? For me: |
I'm using the same version of React, and a slightly earlier version of babel-core: 6.10.4 |
I've had the same problem. |
user import { autobind } from 'core-decorators' |
gaearon/react-transform-catch-errors#26 probably related |
@VinceFanZ Did not work for me with |
@smashercosmo if my dependency's dependency has react-transform-catch-errors and i have transform-decorators-legacy, could this still causing issues? |
This might be related: |
I'm still receiving the
Has this issue been addressed? Please advise. source: |
I think this project is abandonware that will only work with older versions of something (babel? react?) |
See #29 |
met the same problem, anything else solution? |
I fixed it long time ago in react-transform-catch-errors gaearon/react-transform-catch-errors@afbbda8 It just wasn't published. Installing directly from master should work for everyone who faced this issue. |
98968ee should have fixed this. Please try the latest master branch :) |
With react-hot-loader 3 this worked with version v1.4.1 as well. |
I'm guessing I'm missing something but not sure what.
My
.babelrc
:My webpack loader config:
My
.eslintrc
(I have no idea if both of these are needed):In my React component, I use the autobind decorator:
But I get the runtime error:
The text was updated successfully, but these errors were encountered: