Open reduxdj opened 12 years ago
What is the error that you see?
FWIW, I've had issues with the glob library and you have to npm install
it after every clone.
No that doesn't solve the problem.
quadcore-imac:node-backbone-skeleton dj$ npm install glob npm http GET https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/glob quadcore-imac:node-backbone-skeleton dj$ node server.js Compiling all templates
node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object function glob(pattern, options, cb) { if (typeof options === "function") cb = options, options = {} if (!options) options = {}
if (typeof options === "number") { deprecated() return }
var g = new Glob(pattern, options, cb)
return g.sync ? g.found : g
} has no method 'glob'
at Watcher.processTemplatePattern (/Users/dj/skeleton_temp/node-backbone-skeleton/util/watcher.js:140:19)
at Watcher.compileTemplates (/Users/dj/skeleton_temp/node-backbone-skeleton/util/watcher.js:123:28)
at Object.
Hi, you need to get rid of the glob method and do this instead:
line 85
glob pattern, (err, matches) => return console.log "#{err}" if err for match in matches @compileTemplate match, 'create', value.out
This is from glob in node_module:
glob (pattern, options, cb)
that fixes problem