vscode-glean: TypeError: Cannot read property 'superClass' of undefined
I think that line needs another guard because I am seeing:
ERR Cannot read property 'superClass' of undefined: TypeError: Cannot read property 'superClass' of undefined
at isSupportedComponent (/home/capaj/.vscode/extensions/wix.glean-4.2.3/out/modules/jsx.js:152:28)
at Object.isStatefulComp (/home/capaj/.vscode/extensions/wix.glean-4.2.3/out/modules/jsx.js:158:9)
at CompleteActionProvider.provideCodeActions (/home/capaj/.vscode/extensions/wix.glean-4.2.3/out/extension.js:33:19)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:509:787
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:114:65
at new Promise (<anonymous>)
at Object.t.asThenable (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:114:33)
at e.provideCodeActions (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:509:746)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:524:308
at e._withAdapter (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:520:234)
at e.$provideCodeActions (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:524:270)
at t._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:609:757)
at t._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:609:423)
at t._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:607:973)
at t._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:606:957)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:604:773
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:103:886
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:105:344)
at a (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:156:881)
at Socket._socketDataListener (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:157:95)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
The code I am looking at is just a simple stateless component.
Version 4.2.3
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (17 by maintainers)
@timcluyts Sure. Ill review and merge right away
@timcluyts Ok, I can reproduce! The fix is on its way 😃
Getting this problem as well. Downgraded to 4.2.2 just to to see if an older version helps. It gives the same error so I think it might either be a problem with a new VSCode update or a conflicting extension.
@capaj Wow ! first of all, thanks for the PR and the issue! Can you please post the snippet you’ve tried to refactor? Thanks!