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

Errors with Typescript call stacks #14

Open
thekevinbrown opened this issue Feb 28, 2019 · 1 comment
Open

Errors with Typescript call stacks #14

thekevinbrown opened this issue Feb 28, 2019 · 1 comment

Comments

@thekevinbrown
Copy link
Contributor

When there's an error from the main process, errors are reported referencing line numbers of JS files in the dist folder, e.g. the compiled output:

(node:59233) UnhandledPromiseRejectionWarning: TypeError: settings_1.Settings.get(...) is not a function or its return value is not iterable
    at SomeCode (/<project path>/dist/main/main.js:231:44)
...etc
    at process._tickCallback (internal/process/next_tick.js:68:7)

It'd be awesome if these could be reported back to the developer with source maps so there's a Typescript file and line number there.

@nchanged
Copy link
Contributor

I think we are looking at this project
https://github.com/evanw/node-source-map-support

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