A bug occured today when compling my stylus file.
the error information is listed as followed.
> 67| background url(/img/loading.gif) center center no-repeat
Cannot read property 'nodes' of undefined
>> at ".list_img" (public/stylus/components.styl:61)
According to the questions on github and stack overflow, there are two solutions work.
1.update stylus
using > npm install stylus
but it doesn't work on my project.
2.set cache to false.
At first I didn't get what it means and closed the cache of my browser, but it doesn't work, too.
So I had a try to set to the options of stylus, and it finally worked.
stylus: {
compile: {
options: {
urlfunc: 'embedurl',
compress: false,
cache: false
},
...
}