Closed Grmiade closed 7 years ago
It looks like this is a known issue with Babel 6.0. Decorator support has been removed as the spec is changing rapidly.
Hi there,
you may use the transform-decorators-legacy plugin, this works fine with Babel 6.0.
Doesn't work with react-hot-loader though.
It only defines getter while hot-loader tries to patch the property.
function patchProperty(proto, key) {
proto[key] = storedPrototype[key];
@emirotin try react-transform-hmr or react-hot-loader v2 (I think alpha is published on npm). v1 doesn't support getters.
Thanks for the tip! I'm new to React ecosystem which is huge :)
No issues using this with Babel 6. Thank you so much for creating this stop gap library! This issue can be closed, or a new one opened if HMR continues to be an issue for some.
@jhabdas do you mind sharing how you got it to work?
I guess I could just follow the link you provided.
98968ee should have fixed this. Please try the latest master branch :)
Cheers to you good friend. Cheers to you.
I have not managed to run
autobind
decorator with babelify 7.2.0 and babel 6.0.15, the lasts versions. I don't have errors but i think thatautobind
is not made, I have to make it for the hand.My configuration in gulp:
My bad ?