es128/progeny

Cannot read property 'regexp' of undefined

banyan opened this issue · 5 comments

After 28th Oct, this error happens occasionally (not always) when I try brunch build.
Have you noticed this error? currently I'm using sass-brunch with 1.0.3.

/home/ubuntu/foo/node_modules/sass-brunch/node_modules/progeny/lib/index.js:158
      regexp = def.regexp;
                  ^
TypeError: Cannot read property 'regexp' of undefined
  at SassCompiler.progeny [as getDependencies] (/home/ubuntu/foo/node_modules/sass-brunch/node_modules/progeny/lib/index.js:158:19)
  at getDependencies (/home/ubuntu/foo/node_modules/brunch/lib/fs_utils/pipeline.js:40:23)
  at /home/ubuntu/foo/node_modules/brunch/lib/fs_utils/pipeline.js:80:16
  at ChildProcess.<anonymous> (/home/ubuntu/foo/node_modules/sass-brunch/index.js:147:7)
  at ChildProcess.EventEmitter.emit (events.js:98:17)
  at maybeClose (child_process.js:743:16)
  at Socket.<anonymous> (child_process.js:956:11)
  at Socket.EventEmitter.emit (events.js:95:17)

Do any of the source files you're compiling with sass-brunch somehow have a file extension other than scss or sass?

    stylesheets:
      defaultExtension: 'sass'
      joinTo:
        'stylesheets/app.css': /^(app|vendor|bower_components)/
      order:
        before: [
          'bower_components/normalize-css/normalize.css'
          'vendor/stylesheets/foo.css'
        ]   

@es128

Thanks for the response!
Yes, I have css files in vendor, but is this matter?

Shouldn't be a problem - those files should get run through the css-brunch compiler.

I'm not sure what the issue is, and will need more information to be able to help with diagnosing it. What is your brunch ---version? Can you provide the output of brunch b -d?

Should be fixed in sass-brunch 1.8.7

@es128

oh, Thanks a lot!! I'll have a look, and just applied new version is worked!