Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Error stack trace line numbers are incorrect [fix included] #5252

Open
jakubjosef opened this issue Jun 6, 2019 · 0 comments
Open

Error stack trace line numbers are incorrect [fix included] #5252

jakubjosef opened this issue Jun 6, 2019 · 0 comments

Comments

@jakubjosef
Copy link

jakubjosef commented Jun 6, 2019

Hi everyone,
I have a problem with incorrect line numbers in protractor outputs in case of error.

For example I can see something like this:

        at Object.next (/Users/xxx/xxx/xxx/e2e/po/application/components/reference-table.ts:26:53)
                at fulfilled (/Users/xxx/xxx/xxx/e2e/po/application/components/reference-table.ts:17:58)
                at process._tickCallback (internal/process/next_tick.js:68:7)

And these line numbers are totally incorrect.

Fortunately, the fix which is described here: TypeStrong/ts-node#268 (comment)
Adding skipSourceMapSupport: true, to protractor config can resolve the problem.

I think you should make this parameter to true by default, but maybe I'm missing something.
I using Protractor 5.4.2 with Angular 7 application on node 10.

@jakubjosef jakubjosef changed the title Error stack trace line numbers are incorrect Error stack trace line numbers are incorrect [fix included] Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant