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

Source maps problem #15

Closed
gpbl opened this issue Jun 9, 2016 · 6 comments
Closed

Source maps problem #15

gpbl opened this issue Jun 9, 2016 · 6 comments

Comments

@gpbl
Copy link

gpbl commented Jun 9, 2016

Hi, first thanks for this module, it made my restarts much faster 👍

However, my error stack traces show wrong line numbers. If i run the app with babel-node --source-maps the line numbers are correct. Does anybody else have this issue?

@niftylettuce
Copy link

I've got the same issue @gpbl, did you figure this out or an alternative?

@gpbl
Copy link
Author

gpbl commented Aug 5, 2016

@niftylettuce not yet :(

@niftylettuce
Copy link

Perhaps it is related to this babel/example-node-server#10 (comment) - you can just use source-map-support at the top of your file like we did there and got it working.

@kmagiera
Copy link
Owner

@niftylettuce @gpbl sorry for very late response. So @niftylettuce answer is correct (at least it could be one of the reasons you may be seeing this) – this problem may occur if you import source-map-support or some other library which does that (e.g. babel-register)

I'll prepare a patch that will give you a warning whenever that thing happens. I don't think we can ever circumvent this, but at least we can make it cleaner for the users to understand what's going on.

Thanks @gpbl for reporting and @niftylettuce for investigating this issue and for your answer

@kmagiera
Copy link
Owner

Have a fix for that here: 6ea1c10

@kmagiera
Copy link
Owner

And I've just pushed an update to npmjs, please check 2.0.3-rc0 and reopen if you're still experiencing the issue

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

3 participants