Skip to content

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

@littlebee

Description

@littlebee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions