edc/mapcat

Path must be a string. Received undefined

Closed this issue · 4 comments

Hi everyone!
I try to concatenate two files by command:
mapcat dll/vendor_node.dll.js.map dist/server_tmp.js.map
and I get error:

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:28:11)
    at Object.join (path.js:1253:7)
    at /var/www/sources/node_modules/mapcat/lib/index.js:27:22
    at Array.forEach (<anonymous>)
    at SourceMapConsumer_eachMapping [as eachMapping] (/var/www/sources/node_modules/mapcat/node_modules/source-map/lib/source-map/source-map-consumer.js:570:10)
    at exports.cat (/var/www/sources/node_modules/mapcat/lib/index.js:24:9)
    at Object.<anonymous> (/var/www/sources/node_modules/mapcat/bin/mapcat:34:1)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)

It caused by content of vendor_node.dll.js.map. I attached it to this issue. Thanks for help

edc commented

I pushed a potential fix. You can try the updated version (0.4.0) from npm. Let me know if it works.

Yes, it works. Thanks! But if I set breakpoints in home-view.component.ts which was compiled in dist/server_tmp.js it doesn't stop my code in defined place. If I add debugger; in my code, it stops but in mapcat-resulted server.js, but not in home-view.component.ts

Hm... even if I compile my application in one file by Webpack without using your plugin, it doesn't allow me see my not compiled code in debugger. Only resulted server.js

It was mistake in my settings. Thanks for fix!