-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get "expected keyword" error when running grunt jsx, but the jsx command on its own runs fine #15
Comments
+1 I have this issue too |
this is annoying..... |
I also have this issue. |
Is it possible that you're trying to compile Facebook's React JSX syntax? I was trying the same thing, but it turns out that this JSX is a totally different language. The grunt task for React is: https://github.com/ericclemmons/grunt-react |
Yep, that was my problem. |
+1 Any body have any solution for this? |
Are you attempting to compile Facebook's JSX, rather than the completely different (but similarly named) format that this tool is designed for? That was the problem that I ran into a while back. |
elsigh@elsigh-macbookair:~/src/baseline/static (sexycb) $ grunt jsx
Running "jsx:views" (jsx) task
jsx --output js/jsx/views.js js/views.jsx
[js/views.jsx:6:0] expected keyword: class interface mixin abstract final native fake export
base.views.BackboneMixin = {
^
If I just run jsx --output js/jsx/views.js js/views.jsx things are aok.
jsx: {
views: {
src: 'js/views.jsx',
dest: 'js/jsx/views.js'
}
},
The text was updated successfully, but these errors were encountered: