You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make an extension code to use ESM instead of CJS. Set "type": "module" in the extension's package.json file.
Launch this extension via VS Code "Run and Debug".
Get an error upon the extension activation:
Activating extension 'xxxxxx' failed: require() of ES Module d:\xxxxxx\out\extension.js from d:\Programs\VS_code\resources\app\out\vs\loader.js not supported. Instead change the require of extension.js in d:\Programs\VS_code\resources\app\out\vs\loader.js to a dynamic import() which is available in all CommonJS modules..
VS Code version: Code 1.88.0 (5c3e652, 2024-04-03T13:26:18.741Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
Item
Value
CPUs
AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)
VS Code currently does not support ESM extensions (microsoft/vscode#209560) => cannot move to get-windows (latest active-win) yet
looks like window.onDidExecuteTerminalCommand is deprecated => Might need to move to vscode.proposed.terminalShellIntegration.d.ts soon
Type: Bug
"type": "module"
in the extension'spackage.json
file.VS Code version: Code 1.88.0 (5c3e652, 2024-04-03T13:26:18.741Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (10)
A/B Experiments
The text was updated successfully, but these errors were encountered: