Hello World

终于用Github写博客了,记录一下遇到的Bug和解决的过程。

遇到的问题

主要是遇到在生成的时候遇到以下问题,

1
2
3
4
5
6
7
(node:6928) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:6928) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:6928) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:6928) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:6928) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:6928) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

虽然是一堆warning,但是每次看到就很烦人,所以一定要解决掉。

看上去像是循环依赖的问题,个人不是很懂nodejs,看了很多教程,说是其中的依赖nib的依赖stylus版本不对,使用node --trace-warnings检查报错的信息栈,发现确实nib里面有问题。说是Bug在0.54.8里面解决了,但是我不知道版本是多少。去看了一眼Issue,发现竟然在某次Pull Request里面提到了,看一下那里改动了,直接补上,这里是链接