Skip to content

[BUG]: editors/vscode build error #214

@J-Siu

Description

@J-Siu

Issue Description

bun run build error.

Operating System

macOS

Editor

VSCode

Codebook Version

No response

Configuration

Steps to Reproduce

First 3 steps in README for vscode extension:

cd editors/vscode
bun install       # or npm install
bun run build

Expected Behavior

Should have no error

Actual Behavior

❯ bun install
bun install v1.3.9 (cf6cdbbb)

+ @types/adm-zip@0.5.7
+ @types/node@20.19.33 (v25.3.0 available)
+ @types/tar@6.1.13 (v7.0.87 available)
+ @types/vscode@1.109.0
+ @types/which@3.0.4
+ @vscode/vsce@3.7.1
+ esbuild@0.27.3
+ typescript@5.9.3
+ adm-zip@0.5.16
+ tar@7.5.9
+ vscode-languageclient@9.0.1
+ which@4.0.0 (v6.0.1 available)

319 packages installed [3.15s]

Blocked 1 postinstall. Run `bun pm untrusted` for details.
❯ bun run build
$ esbuild src/extension.ts --bundle --outdir=dist --external:vscode --format=cjs --platform=node --sourcemap --minify
✘ [ERROR] No matching export in "node_modules/tar/dist/esm/index.min.js" for import "default"

    src/binary.ts:10:7:
      10 │ import tar from "tar";~~~

1 error
error: script "build" exited with code 1

Code Sample


Log Output

Additional Context

Adding bun pm trust @vscode/vsce-sign before bun run build still gives the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions