Uncaught Exception: TypeError: connection.onDidOpenTextDocument is not a function
TypeError: connection.onDidOpenTextDocument is not a function
at TextDocuments.listen (/Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/node_modules/sql-language-server/node_modules/vscode-languageserver/lib/common/textDocuments.js:115:20)
at createServerWithConnection (/Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/node_modules/sql-language-server/src/createServer.ts:44:13)
at launch (file:///Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/launcher.ts:14:28)
at file:///Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/main.ts:58:9
at WebSocketServer.completeUpgrade (/Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/node_modules/ws/lib/websocket-server.js:431:5)
at WebSocketServer.handleUpgrade (/Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/node_modules/ws/lib/websocket-server.js:339:10)
at Server.<anonymous> (file:///Users/rick.zhou/Desktop/monaco-lsp-demo/sql-language-server/main.ts:39:9)
at Server.emit (node:events:527:28)
at Server.emit (node:domain:475:12)
at onParserExecuteCommon (node:_http_server:732:14)
When I start the project, I get this error
env