stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.91k stars 249 forks source link

Odd new error building flexbox grid framework with nib #320

Closed jonathanasquier closed 6 years ago

jonathanasquier commented 8 years ago

Hi, I'm using nib to build a flexbox grid framework (https://bitbucket.org/Jonathan_Asquier/flexbox-grid) And it used to work pretty well since now (build works without nib):

Potentially unhandled rejection [2] TypeError: /home/jonathan/workspace/theme-builder/node_modules/stylus/lib/functions/index.styl:266:37
   262| add-property(name, expr)
   263|   if mixin
   264|     {name} expr
   265|   else
   266|     add-property-function(name, expr)
--------------------------------------------^
   267| 
   268| prefix-classes(prefix)
   269|   -prefix-classes(prefix, block)

Cannot read property 'nodes' of undefined
    at display() (/home/jonathan/workspace/theme-builder/node_modules/nib/lib/nib/flex.styl:12:22)
    at column() (/home/jonathan/workspace/theme-builder/app/components/flexbox-grid/src/styl/flexbox-grid.styl:73:8)

The block in the framework is :

column()
    box-sizing border-box
    display flex
    flex-direction column
    flex-grow 0
    flex-shrink 0
    padding-right $half-gutter-width
    padding-left $half-gutter-width

I'm using gulp-stylus 2.1.2, nib 1.1.0, stylus 0.53.0

Thanks ! :)