Cannot read Property 'nodes' of Undefined

Asked

Viewed 243 times

0

I’m getting the ERROR below when trying to implement a stylization in my project with Stylus. The same goes for background: url(...); and I think for any other attempt related.

I found in the Github some similar problems, but none of the solutions worked in this case.

I’m using the plugin gulp-stylus and I’ve used it before, but everything always went normally.

Cannot read property 'nodes' of undefined
    at ".section-partition" (/media/idlua/Arquivo 1/Development/Projects/project/src/css/_areas/_areas-global.styl:8:98)

Details:
    lineno: 14
    column: 75
    filename: /media/idlua/Arquivo 1/Development/Projects/project/src/css/_areas/_areas-global.styl
    stylusStack:     at ".section-partition" (/media/idlua/Arquivo 1/Development/Projects/project/src/css/_areas/_areas-global.styl:8:98)

Excerpt from the code that generates the ERROR (when I withdraw the stylization of bg works):

.section-partition
  content ""
  display block
  width 100%
  height 1px
  margin 1em auto
  background-image linear-gradient(to left $color_1n, $color_2n, $color_1n)

Does anyone have any idea what might be causing?

  • Have you tested with cool values instead of variables like $color_1n?

  • I tried, but I got the same error. But I found the problem; it was just the name of the directory where the project was. =/

1 answer

0


I found out what the problem was: just the name of the directory where the project was. There was a # in the folder name and this was confusing the node to find the Imports in the css files.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.