module.exports now throwing "Unexpected indentifier" error at runtime #37
Comments
Please include the generated code when submitting bugs like this. |
Here's the stack trace from console And the generated code https://gist.github.com/pbojinov/645aabe47a0b091b17a3 |
That stack trace doesn't make any sense, there's nothing even related to this. I'm going to close this, you can either look for support in https://slack.babeljs.io, http://discuss.babeljs.io or http://www.reactiflux.com. If you want, you can also create a repo with a minimal reproduction case that demonstrates this problem. |
We'll try and make an isolated test case, of course! The error is very inconsistent, so an isolation would make it clear for sure. We just thought perhaps you'd have a notion off the top of your head. The reason we are bringing it up here is that the error appears only in development, and only when we changed to using react-transform-hmr with no other code change. In fact, if we turn off hmr, it works fine. Test case forthcoming... |
Any updates on this? I'm getting the same errors. |
There can’t be any updates without a reproducible case. It’s literally impossible to come up with updates from thin air 😉 . If you contribute a repro case, I’m happy to take a look, but for now I am closing. Cheers! |
This happens on on dev environment, and only at runtime. And only for ES6 classes (not React.createClass components) being used in redux-forms.
I'm using babel6 and the new babel-react-transform. If I remove react-transform-hmr from .babelrc, error goes away.
Here's the .bablerc:
The text was updated successfully, but these errors were encountered: