-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsx not supported (Unexpected token "<") #1
Comments
Did you mean what's the output for |
If you do a temporary rename/delete of |
Both I am get the same error regardless of the presence of babelrc. I also tried putting the babel config directly in my package.json (which is alternative way to specify your babel config), and get the same error. Rewriting the jsx in pure JavaScript gets me passed the error and builds successfully. But this solution is not good enough, because the component I wish to ultimately publish will use a bunch of other babel features. For example, we use arrow functions within classes (e.g. |
Found a lot of info here. Unfortunately, none of these things has worked for me yet. |
I'm unable to reproduce the error on my devices. My best guess would be some kind of environment specific bug in babel loader. I've updated the dependencies for this package to their latest versions. |
Ah, yeah. Thanks anyway. |
When I run
npm run build
, I get the error:This problem may not be specific to your setup in particular. I've been trying to publish my own React component and keep running into this error. It's as-if .babelrc is being ignored or similar. Your help is greatly appreciated.
The text was updated successfully, but these errors were encountered: