Skip to content

Instantly share code, notes, and snippets.

@smvv
Last active December 21, 2015 04:38
Show Gist options
  • Save smvv/6250487 to your computer and use it in GitHub Desktop.
Save smvv/6250487 to your computer and use it in GitHub Desktop.
module.exports = require('./core.json').reduce(function (acc, x) {
acc[x] = true;
return acc;
}
$ grunt
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'reduce'
at Object.<anonymous> (/usr/lib64/node_modules/grunt-cli/node_modules/resolve/lib/core.js:1:103)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object.<anonymous> (/usr/lib64/node_modules/grunt-cli/node_modules/resolve/index.js:1:74)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment