'this' is converted to 'undefined' by babel in node.js project
hi..
I tried following the javascript example but babel 6.26.0, with the 'env' preset, is converting the 'this' in the flatbuffers files to 'undefined'. If i try to set 'modules' to false in the 'env' settings, babel starts complaining about 'import'.
I can get around it for now by doctoring the files to use 'export default' but that's not ideal. Any ideas appreciated!
Did you miss the example? And isn't this a problem with Babel, not FlatBuffers?
Are you referring to javascript_sample.sh? If so, I didn't miss it. It doesn't use babel, but many node projects do so i thought, perhaps, someone might have run into this. Not a blocker, in any case.
It doesn't seem to be ringing any bells and it's not blocking so i'll close it.