ts-namespace-import-plugin
ts-namespace-import-plugin copied to clipboard
TypeError: Cannot read properties of undefined (reading 'entries')
In Helix with typescript-language-server I see this repeatedly in my logs, though the plugin does work:
$ hx -v
$ cat ~/.cache/helix/helix.log
2023-09-30T18:19:23.240 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-09-30T18:20:31.235 helix_lsp::transport [ERROR] <- ServerError(1): <semantic> TypeScript Server Error (5.2.2)
Cannot read properties of undefined (reading 'entries')
TypeError: Cannot read properties of undefined (reading 'entries')
at proxy.getCompletionsAtPosition (/Users/sam/Dev/unsplash/web/node_modules/@unsplash/ts-namespace-import-plugin/dist/index.js:111:50)
at IpcIOSession.getCompletions (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:184375:54)
at completionInfo (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:182769:43)
at /Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185151:69
at IpcIOSession.executeWithRequestId (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185143:14)
at IpcIOSession.executeCommand (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185151:29)
at IpcIOSession.onMessage (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:185193:51)
at process.<anonymous> (/Users/sam/Dev/unsplash/web/node_modules/typescript/lib/tsserver.js:186782:14)
at process.emit (node:events:514:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)