Skip to content

WIP: Bug: stacktrace.frames undefined

Emily Jensen requested to merge 111-frames-undefined into master

Need to support stacktrace?: Stacktrack | null | {} https://github.com/Microsoft/TypeScript/issues/8032

Updating the type created the following type errors:

[HPM] Error occurred while trying to proxy request /api/0/issues/106/ from localhost:4200 to http://localhost:8000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/0/organizations/ from localhost:4200 to http://localhost:8000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
    
    Error: src/app/issues/issue-detail/issue-detail.service.ts:248:55 - error TS2339: Property 'frames' does not exist on type '{} | Stacktrace'.
      Property 'frames' does not exist on type '{}'.
    
    248             const frameReverse = [...value.stacktrace.frames].reverse();
                                                              ~~~~~~
    src/app/issues/issue-detail/issue-detail.service.ts:274:54 - error TS2339: Property 'frames' does not exist on type '{} | Stacktrace'.
      Property 'frames' does not exist on type '{}'.
    
    274           const reverseFrames = [...value.stacktrace.frames].reverse();
                                                             ~~~~~~

Closes #111 (closed)

Edited by Emily Jensen

Merge request reports