Skip to content

Fix vscode-languageserver node import for v10 exports map - #8

Merged
fsoikin merged 1 commit into
collegevine:mainfrom
pgujjula-cv:fix-vscode-languageserver-node-import
Jun 3, 2026
Merged

fsoikin merged 1 commit into
collegevine:mainfrom
pgujjula-cv:fix-vscode-languageserver-node-import

Conversation

@pgujjula-cv

@pgujjula-cv pgujjula-cv commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

vscode-languageserver 10.0.0 introduced an exports map that only exposes the node entry under the ./node subpath. The FFI imported it as vscode-languageserver/node.js, which is not a key in the exports map, so esbuild fails to bundle:

  Could not resolve "vscode-languageserver/node.js"
  The path "./node.js" is not exported by package "vscode-languageserver"

Because the package declares no dependency pin, the whine bootstrap npm install resolves the latest vscode-languageserver (now 10.x), breaking the cached-bundle build for every consumer.

Drop the .js suffix so the import matches the ./node export key. This resolves on v10 (matches ./node) and stays compatible with v9.0.1 (no exports map; resolves to the root node.js file).

vscode-languageserver 10.0.0 introduced an exports map that only exposes
the node entry under the ./node subpath. The FFI imported it as
vscode-languageserver/node.js, which is not a key in the exports map, so
esbuild fails to bundle:

  Could not resolve "vscode-languageserver/node.js"
  The path "./node.js" is not exported by package "vscode-languageserver"

Because the package declares no dependency pin, the whine bootstrap npm
install resolves the latest vscode-languageserver (now 10.x), breaking
the cached-bundle build for every consumer.

Drop the .js suffix so the import matches the ./node export key. This
resolves on v10 (matches ./node) and stays compatible with v9.0.1 (no
exports map; resolves to the root node.js file).

@fsoikin fsoikin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, looks good, thanks.

@fsoikin
fsoikin merged commit 7ebe04d into collegevine:main Jun 3, 2026
2 checks passed
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 this pull request may close these issues.

2 participants