disregard
For future reference for people who come here, this is possibly related to imports being malformed.
In my specific case, it was the import {x as y} syntax that Babel 6 wasn't liking.
I got this error because I accidentally added parentheses after my class decorator:
@withRouter() // Don't write parentheses here!
@connect(null, { loginUser })
class Login extends React.Component { ... }
The way to write it is just @withRouter.
Most helpful comment
For future reference for people who come here, this is possibly related to imports being malformed.
In my specific case, it was the import {x as y} syntax that Babel 6 wasn't liking.