express-mongoose-es6-rest-api icon indicating copy to clipboard operation
express-mongoose-es6-rest-api copied to clipboard

Error use line number in original code using sourcemap instead of /dist code

Open ruler88 opened this issue 7 years ago • 7 comments

The error logging points to the line number in the /dist code. Given that we have the sourcemap from gulp, is it possible to point to the file and line number based on the original code?

ruler88 avatar Sep 01 '16 23:09 ruler88

@KunalKapadia @laumair I have same question.

mmestani avatar Oct 04 '16 07:10 mmestani

@mmestani I actually figured this out. I installed this npm modules: https://github.com/evanw/node-source-map-support

Follow the installation direction and the sourcemap line number issue gets solved automagically!

ruler88 avatar Oct 04 '16 15:10 ruler88

@mmestani Currently the boilerplate misses this functionality. @KunalKapadia maybe you need to take a look if its important to add. Otherwise, @ruler88 managed to sort it out with https://github.com/evanw/node-source-map-support.

P.S: I haven't really used this one. Seems good to me.

laumair avatar Oct 04 '16 16:10 laumair

@ruler88 @laumair thanks, I'll try this one. For my opinion its good to have buit-in. This project looks very promising to me :)

mmestani avatar Oct 04 '16 18:10 mmestani

@laumair Would you like to take this up as well ? If not, I'll start working on this. Seems like a small one.

kunalkapadia avatar Oct 07 '16 09:10 kunalkapadia

@KunalKapadia Apologies for the late reply. Have been really busy with stuff. Is this picked already? @mmestani

laumair avatar Oct 13 '16 13:10 laumair

@laumair Not picked up. Please feel free to raise a PR.

kunalkapadia avatar Oct 14 '16 07:10 kunalkapadia