Closed pmysinski closed 2 years ago
Thanks for the report! I've switched teams and haven't worked on Flux in quite a while, if anyone is able to help debug this and submit a PR that would be great. I will be able to merge it and do a release. If not this may be a bit slower to get resolved.
Had the same error, seems to be caused by the older Babel version used to generate the dist
files for this repo. I updated my build to have current Babel transpile the source files and my app works again.
@pmysinski @rvignacio
I've updated Babel to the latest version and published it as @koba04/flux
temporally.
https://github.com/facebook/flux/pull/495
It would be helpful for me if you would test the pacakge whther it works fine or not.
@koba04 I confirm your fix works, thank you!
it works.
After Babel 7.9.x Update exactly @babel/preset-env -> @babel/plugin-transform-classes
We have issue with proper context in Container components. Constructor has different context than render function. Until the update similar code to this one had been working properly (v7.8.6), we could bind functions in constructor and pass them to children components as props.
Example reproduction:
Babel:
package.json
I'm not sure whos issue this is babel or flux but it would nice to have this back to work how it used to:)