Every time I try to open a new TypeScript file within my Angular project, I encounter an error message:
The server angular-ls:xxxxx/starting has exited with status exit (please check the corresponding stderr for more details). Would you like to restart it? (y or n)
An error message from angular-ls's stderr buffer reads as follows:
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/usr/lib/node_modules/@angular/language-server'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
I have removed any references to @angular/language-service
from my package.json, yarn.lock, and tsconfig.json files. However, some component appears to be attempting to start it despite this.
To clarify, I do not wish to completely disable the TypeScript language service/LSP (as it functions properly once this dialogue is closed), but rather want to eliminate any remnants of @angular/language-service
.
What steps can I take to resolve this issue?