【问题标题】:Stylus not parsing comments correctly?手写笔无法正确解析评论?
【发布时间】:2012-06-16 23:34:53
【问题描述】:

我有以下 css 文件:

/*!
 * http://meyerweb.com/eric/tools/css/reset/
 * v2.0 | 20110126
 * License: none (public domain)
 */
...

但是当我尝试解析它时,我收到以下错误:

/usr/local/lib/node_modules/npm/node_modules/stylus/bin/stylus:502
              throw err;
                    ^
TypeError: reset.styl:2
   1| /*!
 > 2|  * http://meyerweb.com/eric/tools/css/reset/
   3|  * v2.0 | 20110126
   4|  * License: none (public domain)
   5|  */

Cannot read property 'name' of undefined

我注意到手写笔也有其他被屏蔽的评论的问题(我只是删除了那些以解决问题,但现在我需要弄清楚发生了什么)。

我在这里做错了什么?

【问题讨论】:

标签: css stylus


【解决方案1】:

显然我的编辑器将 .styl 文件创建为文本以外的其他文件,因此我更新了应用程序的文件类型关联,现在一切看起来都很好。

【讨论】:

  • 接受您的回答,因此此问题不会显示在未回答列表中。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-03
  • 1970-01-01
  • 1970-01-01
  • 2014-10-10
  • 2012-05-31
  • 1970-01-01
相关资源
最近更新 更多