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

debug console does not show anything sometimes #6551

Closed
akosyakov opened this issue Nov 14, 2019 · 3 comments · Fixed by #6552
Closed

debug console does not show anything sometimes #6551

akosyakov opened this issue Nov 14, 2019 · 3 comments · Fixed by #6552
Assignees
Labels
bug bugs found in the application debug issues that related to debug functionality

Comments

@akosyakov
Copy link
Member

It can be reproduced with running browser example from sources.

@akosyakov akosyakov added bug bugs found in the application debug issues that related to debug functionality labels Nov 14, 2019
@akosyakov
Copy link
Member Author

akosyakov commented Nov 14, 2019

/42.bundle.js:74 Uncaught (in promise) TypeError: Cannot read property 'ansiToHtml' of undefined
    at new AnsiConsoleItem (/42.bundle.js:74)
    at DebugConsoleSession.<anonymous> (/42.bundle.js:618)
    at step (/42.bundle.js:421)
    at Object.next (/42.bundle.js:402)
    at /42.bundle.js:396
    at new Promise (<anonymous>)
    at push.../../packages/debug/lib/browser/console/debug-console-session.js.__awaiter (/42.bundle.js:392)
    at DebugConsoleSession.push.../../packages/debug/lib/browser/console/debug-console-session.js.DebugConsoleSession.logOutput (/42.bundle.js:594)
    at /42.bundle.js:483
    at bundle.js:135182
31ansi-console-item.tsx:30 Uncaught (in promise) TypeError: Cannot read property 'ansiToHtml' of undefined
    at new AnsiConsoleItem (ansi-console-item.tsx:30)
    at DebugConsoleSession.<anonymous> (debug-console-session.ts:167)
    at step (debug-console-session.ts:15)
    at Object.next (debug-console-session.ts:15)
    at debug-console-session.ts:15
    at new Promise (<anonymous>)
    at push.../../packages/debug/lib/browser/console/debug-console-session.js.__awaiter (debug-console-session.ts:15)
    at DebugConsoleSession.push.../../packages/debug/lib/browser/console/debug-console-session.js.DebugConsoleSession.logOutput (debug-console-session.ts:154)
    at debug-console-session.ts:57
    at event.ts:120

It seems to be broken by #6255

@paul-marechal
Copy link
Member

Ah yes, this one is legit. I guess the upgraded typings are not in sync with the pulled dep. Will fix.

@paul-marechal paul-marechal self-assigned this Nov 14, 2019
@akosyakov
Copy link
Member Author

The issue is that ts produces different code now, before it was anser_1.ansiToHtml, not it is anser_1.default.ansiToHtml. The thing is that this module does not have the default export, so typing do look bogus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application debug issues that related to debug functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants