Css 手写笔无法正确解析注释?
我有以下css文件:Css 手写笔无法正确解析注释?,css,stylus,Css,Stylus,我有以下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;
/*!
* 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
我注意到触控笔和其他被阻止的评论也有问题(那些我只是为了解决问题而删除的评论,但现在我需要弄清楚到底发生了什么)
我做错了什么?显然,我的编辑器创建的是.styl文件,而不是文本文件,因此我更新了应用程序的文件类型关联,现在一切看起来都很好。您的语法很好。你的虫子在别处。您如何调用手写笔编译器?@Alex Wanye:stylus reset.styl:from命令like eact接受您的答案,因此此问题不会显示在未回答的列表中。