TypeError: Cannot read property 'dispose' of undefined
See original GitHub issue- Extension version: 0.26.0
- VSCode Version: 1.56.0
- OS: Window 10 19042.928
Steps to Reproduce:
I don’t know exactly how I produced this except that:
- I was in review mode on a PR.
- After some time spend reviewing (maybe sleeping/waking the PC, etc.), I clicked back over to the “GitHub” tab
- I saw this notification and the pull requests list was empty in the UI

Saw this stack trace in the inspector:
TypeError: Cannot read property 'dispose' of undefined
at c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1005:21634
at Array.forEach (<anonymous>)
at c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1005:21621
at Array.forEach (<anonymous>)
at Md.dispose (c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1005:21581)
at Object.dispose (c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1005:23035)
at c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1066:402
at Array.forEach (<anonymous>)
at Mu.dispose (c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1066:389)
at c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1062:1904
at Array.forEach (<anonymous>)
at Va.dispose (c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1062:1891)
at c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1090:17562
at Array.forEach (<anonymous>)
at Wl.getChildren (c:\Users\rikki\.vscode\extensions\github.vscode-pull-request-github-0.26.0\dist\extension.js:1090:17549)
at d.fetchChildrenNodes (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:61023)
at d.getChildren (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:57862)
at a.$getChildren (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:87:54839)
at l._doInvokeHandler (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:12836)
at l._invokeHandler (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:12520)
at l._receiveRequest (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:11187)
at l._receiveOneMessage (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:10172)
at c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:91:8074
at fire (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1836)
at S.fire (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:15497)
at c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:106:29764
at fire (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1836)
at S.fire (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:15497)
at t._receiveMessage (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:20755)
at c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:17641
at fire (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1836)
at acceptChunk (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:12862)
at c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:12210
at Socket.v (c:\Users\rikki\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:106:13195)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
onDidChangeNotification @ workbench.desktop.main.js:735
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'dispose' of undefined #6
Okay. The issue was revealed. The problem is: you are interacting with the editor before its initialization. Let me explain what happens in...
Read more >[OutSystems Maps] Cannot read properties of undefined ...
TypeError : Cannot read properties of undefined (reading 'dispose'). at Map.dispose (https://mysite.com/Job/scripts/OutSystemsMaps.
Read more >cannot read properties of undefined (reading 'dispose') google ...
The TypeError: Cannot read properties of undefined (reading 'map') occurs when we call the `map()` method on an `undefined` value, most often when...
Read more >Uncaught TypeError: Cannot read property 'dispose' of ...
I'm using all the latest versions of create-react-app, react, webpack, amcharts. I've implemented a amchart component with webpack, ...
Read more >Gizmo Manager dispose issue on reactjs - Babylon.js Forum
Hi, I am trying to dispose gizmo manager in react(CRA) but it gives me this weird ... TypeError: Cannot read property 'dispose' of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No steps for this as I’m not 100% certain about the cause of the issue. We’ll call it verified since there have been no other reports of it.
@alexr00 got any verification steps?