简体   繁体   中英

jscs : Expected end of node list but “CommentBlock” found

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" :

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM