Each time I open a new TypeScript file in an Angular project, it throws an error
Server angular-ls:xxxxx/starting exited with status exit(check corresponding stderr for details). Do you want to restart it? (y or n)
angular-ls:stderr buffer:
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)
There isn't anything related to @angular/language-service
left in package.json, yarn.lock or tsconfig.json but "something" keeps trying to start it.
Just to be clear, I don't want to disable TypeScript language service/LSP completely(it works fine you close this dialog), I just want to remove the artifacts of @angular/language-service
.
How to fix it?