Azure-Samples / Azure-Samples/SQL-AI-samples

TypeError: Cannot read properties of undefined (reading 'prototype')

Aperta
#84 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
HTML
Stelle
331
Fork
208
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Running the MCP server with Node >= v24.x results in the following error (this capture is with Node v25.2.0):

❯ node /Users/me/Repositories/Clones/Microsoft/SQL-AI-samples/MssqlMcp/Node/dist/index.js
/Users/me/Repositories/Clones/Microsoft/SQL-AI-samples/MssqlMcp/Node/node_modules/buffer-equal-constant-time/index.js:37
var origSlowBufEqual = SlowBuffer.prototype.equal;
^

TypeError: Cannot read properties of undefined (reading 'prototype')
at Object. (/Users/me/Repositories/Clones/Microsoft/SQL-AI-samples/MssqlMcp/Node/node_modules/buffer-equal-constant-time/index.js:37:35)
at Module._compile (node:internal/modules/cjs/loader:1760:14)
at Object..js (node:internal/modules/cjs/loader:1892:10)
at Module.load (node:internal/modules/cjs/loader:1480:32)
at Module._load (node:internal/modules/cjs/loader:1299:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at Module.require (node:internal/modules/cjs/loader:1503:12)
at require (node:internal/modules/helpers:152:16)
at Object. (/Users/me/Repositories/Clones/Microsoft/SQL-AI-samples/MssqlMcp/Node/node_modules/jsonwebtoken/node_modules/jwa/index.js:1:19)

I do not get this error with Node v23.11.0. See https://github.com/microsoft/vscode-vsce/issues/1139 for reference.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Reproduce the failure from MssqlMcp/Node/dist/index.js using Node v24 or later, then inspect the dependency path through jsonwebtoken, jwa, and buffer-equal-constant-time shown in the stack trace. Done means the MCP server starts without this TypeError on supported Node versions while retaining its existing behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
node.js
Ambito
backend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.