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

0.9.5: webpacked bits fail with TypeError: Cannot read properties of undefined (reading 'getCrypto') #205

Closed
aeschli opened this issue Mar 21, 2024 · 1 comment · Fixed by #206
Assignees

Comments

@aeschli
Copy link

aeschli commented Mar 21, 2024

wsl uses @vscode/extension-telemetry and webpack to bundle.

I tried updating to 0.9.5, but I got a runtime error Cannot read properties of undefined (reading 'getCrypto').

I'm now back at 0.8.5, which does not have this issue

Underlying issue: microsoft/ApplicationInsights-JS#2307

#204 wanted to tackle that, but it still seems to be present.

What the extension does is instantiating a TelemetryReporter.

2024-03-21 18:14:45.244 [error] TypeError: Cannot read properties of undefined (reading 'getCrypto')
	at random32 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20778:55)
	at newId (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20840:18)
	at __webpack_require__.d.STR_CHANNELS (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20581:78)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.createElmNodeData (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20371:88)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.createDynamicConfig (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20086:79)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.DiagnosticLogger (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:19582:76)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d._DYN_ADD_NOTIFICATION_LIS1 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:19063:70)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.utcNow (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20720:67)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.__assignFn (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:24152:71)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.TelemetryInitializerPlugin (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:28664:68)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.DEFAULT_BREEZE_ENDPOINT (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35602:97)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at __webpack_require__.d.AjaxHelperParseDependencyPath (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35514:63)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35358:38)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:14607:36)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at Object.create.k2 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:14381:31)
	at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
	at c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44517:21
	at c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44820:3
	at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44825:12)
	at o._compile (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1271)
	at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
	at Module.load (node:internal/modules/cjs/loader:1126:32)
	at Module._load (node:internal/modules/cjs/loader:967:12)
	at c._load (node:electron/js2c/node_init:2:13672)
	at h._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:175:5602)
	at i._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:172:29719)
	at t._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:137:35279)
	at Module.require (node:internal/modules/cjs/loader:1150:19)
	at require (node:internal/modules/cjs/helpers:119:18)
	at Function.i [as __$__nodeRequire] (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:98)
	at m.xb (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:172:30898)
	at async Promise.all (index 0)
@lramos15
Copy link
Member

I've been told they should have a fixed version of app insights out today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants