microsoft / vscode-extension-telemetry

Node module to help VS Code extensions send telemetry using application insights
https://www.npmjs.com/package/@vscode/extension-telemetry
Other
125 stars 46 forks source link

VSCode Extension fails to load due to @vscode/extension-telemetry #196

Closed Power-Maverick closed 8 months ago

Power-Maverick commented 8 months ago

An extension ran fine until I upgraded to fix some minor bugs. Since then my extension has stopped working.

Below is the error I am seeing in the Extension Host when the extension loads:

2023-12-28 12:36:52.353 [error] Activating extension danish-naglekar.dataverse-devtools failed due to an error:
2023-12-28 12:36:52.353 [error] Error: Cannot find module '@vscode/extension-telemetry'
Require stack:
- c:\Users\XYZ\.vscode\extensions\danish-naglekar.dataverse-devtools-2.1.16\out\extension.js

I have @vscode/extension-telemetry under dependency. Local execution and publishing work fine. It only errors when the published extension is loaded.

Any suggestions?

Power-Maverick commented 8 months ago

Upgraded the packages and node version. Also switched to webpack. That seemed to resolve the issue.

lramos15 commented 8 months ago

Glad to hear you resolved the issue