Skip to content
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

Closed
elsigh opened this issue Jul 29, 2014 · 7 comments · Fixed by #16
Closed

Comments

@elsigh
Copy link

elsigh commented Jul 29, 2014

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'
}
},

@beldougie
Copy link

+1 I have this issue too

@super-cache-money
Copy link

this is annoying.....

@sethwklein
Copy link
Contributor

I also have this issue.

@rdebeasi
Copy link

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.

jsx/JSX#332

The grunt task for React is: https://github.com/ericclemmons/grunt-react

@sethwklein
Copy link
Contributor

Yep, that was my problem.

@babukrishna
Copy link

+1 Any body have any solution for this?

@rdebeasi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants