简体   繁体   English

jscs:节点列表的预期结尾,但是找到了“ CommentBlock”

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

JSCS is not able to parse my ReactJS Component. JSCS无法​​解析我的ReactJS组件。 It errors in the first line of the page with the error "Expected end of node list but "CommentBlock" found" : 它在页面的第一行中出现错误,错误为“节点列表的预期末尾,但找到了“ CommentBlock””:

在此处输入图片说明

The reason for the error was because I had commented out a line of JSX in my reactJs component. 错误的原因是因为我在我的reactJs组件中注释了一行JSX。

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

Removing the inline comment fixed the issue. 删除内联注释可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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