Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path must be a string. Received undefined #12

Closed
krivochenko opened this issue Oct 31, 2017 · 4 comments
Closed

Path must be a string. Received undefined #12

krivochenko opened this issue Oct 31, 2017 · 4 comments

Comments

@krivochenko
Copy link

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
Copy link
Owner

edc commented Nov 1, 2017

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

@krivochenko
Copy link
Author

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

@krivochenko
Copy link
Author

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

@krivochenko
Copy link
Author

It was mistake in my settings. Thanks for fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants