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

comments cause SyntaxError: Unexpected end of input: unclosed CJSX_ESC #65

Open
littlebee opened this issue Oct 28, 2015 · 1 comment
Open

Comments

@littlebee
Copy link

Without the comment, the following compiles and renders fine:

  x.IndexView = React.createClass
    displayName: "views.user.IndexView"

    render: () ->
      return (
        <div className="user-indexview">
          <h1>Say Hello to React.js</h1>
          <R.Collection collectionClass={App.models.user.Users} fetch={true}>
              {# this is a comment }
              <div className="test">
                <R.CollectionStats/>
              </div>
          </R.Collection>
        </div>
      )

With the comment, I get a "SyntaxError: Unexpected end of input: unclosed CJSX_ESC"

I've also seen this error show up on the outermost component if one of the inner components has an unmatched tag.

@littlebee
Copy link
Author

also, replacing {# this is a comment} with {### this is a comment ###} works

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

No branches or pull requests

1 participant