jscs : Expected end of node list but "CommentBlock" found

214 Views Asked by At

JSCS is not able to parse my ReactJS Component. It errors in the first line of the page with the error "Expected end of node list but "CommentBlock" found" :

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

The reason for the error was because I had commented out a line of JSX in my reactJs component.

<Nav pullRight>
    {/*/<li><Link to='/auth/login' activeClassName='route--active'>login</Link></li>*/}
</Nav>

Removing the inline comment fixed the issue.