brunch / auto-reload-brunch

Adds automatic browser reloading support to brunch.
88 stars 30 forks source link

Error on build/watch #5

Closed chrisvanpatten closed 12 years ago

chrisvanpatten commented 12 years ago

Experimenting with autoreload and brunch and I'm getting this error:

/Users/Chris/Websites/Sandbox/testsite/node_modules/auto-reload-brunch/lib/index.js:33
      if (!this.config.persistent) return;
                      ^
TypeError: Cannot read property 'persistent' of undefined
    at module.exports.AutoReloader.onCompile (/Users/Chris/Websites/Sandbox/testsite/node_modules/auto-reload-brunch/lib/index.js:33:23)
    at helpers.loadPackages.callCompileCallbacks (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:190:18)
    at Array.forEach (native)
    at helpers.loadPackages.callCompileCallbacks (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:189:26)
    at getCompileFn (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:148:16)
    at module.exports.write (/usr/local/lib/node_modules/brunch/lib/fs_utils/write.js:65:14)
    at async.forEach (/usr/local/lib/node_modules/brunch/node_modules/async/lib/async.js:94:25)
    at exports.writeFile (/usr/local/lib/node_modules/brunch/lib/fs_utils/common.js:31:16)
    at fs.close (/usr/local/lib/node_modules/brunch/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js:94:5)
    at Object.oncomplete (fs.js:297:15)

Thanks!

paulmillr commented 12 years ago

@chrisvanpatten sorry for delay. will fix this today

paulmillr commented 12 years ago

fixed