edc/mapcat

illegal operation on a directory

bolasblack opened this issue · 1 comments

$ node_modules/.bin/mapcat _sourceMap/js/app/*.map -m public/js/app.map -j public/js/app.js


fs.js:381
  var r = binding.read(fd, buffer, offset, length, position);
                  ^
Error: EISDIR, illegal operation on a directory
    at Object.fs.readSync (fs.js:381:19)
    at fs.readFileSync (fs.js:208:28)
    at exports.cat (/Users/Yuntao/workSpace/frontend/NTCloud/node_modules/mapcat/lib/index.js:20:11)
    at Object.<anonymous> (/Users/Yuntao/workSpace/frontend/NTCloud/node_modules/mapcat/bin/mapcat:30:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:245:9)

Any thing i did wrong?

edc commented

It looks like one or more of the input map files are malformed. I could take a look at it if you send them to me. Or, add console.log(map.file) to the end of line 19 of /Users/Yuntao/workSpace/frontend/NTCloud/node_modules/mapcat/lib/index.js.