Closed rain9441 closed 1 year ago
Having the same issue. Did you find a solution for this?
Remove this plugin. CocUninstall coc-angular
I installed the angular language server npm -g install @angular/language-server
.
I also npm -g install typescript
, just to be sure.
And in my ~/.vim/coc-settings.json
I defined the server thusly:
{
"languageserver": {
"angular": {
"command": "ngserver",
"args": ["--stdio", "--tsProbeLocations", "/usr/local/lib/node_modules/typescript/lib", "--ngProbeLocations", "/usr/local/lib/node_modules/@angular/language-server/lib"],
"filetypes": [ "ts", "typescript", "html", "typescriptreact", "typescript.tsx" ],
"trace.server.verbosity": "verbose"
}
}
Maybe you'll have to change your locations. I'm on a Mac.
It seems to be working.
Remove this plugin.
CocUninstall coc-angular
I installed the angular language server
npm -g install @angular/language-server
.I also
npm -g install typescript
, just to be sure.And in my
~/.vim/coc-settings.json
I defined the server thusly:{ "languageserver": { "angular": { "command": "ngserver", "args": ["--stdio", "--tsProbeLocations", "/usr/local/lib/node_modules/typescript/lib", "--ngProbeLocations", "/usr/local/lib/node_modules/@angular/language-server/lib"], "filetypes": [ "ts", "typescript", "html", "typescriptreact", "typescript.tsx" ], "trace.server.verbosity": "verbose" } }
Maybe you'll have to change your locations. I'm on a Mac.
It seems to be working.
Yes, it works. I configured it directly, and it works perfectly. If someone need help, will be happy to connect and show how it works. Thank you for you fresh mind)
You're very welcome. Glad to be of help.
Describe the bug Angular 16 does not work with coc-angular as @angular/language-server 16 has some breaking changes
To Reproduce Steps to reproduce the behavior:
Log:
later:
Failed to resolve ngcc from c:/projects/salacia/nx/Salacia.Web
If I update package.json in coc-angular to use @angular\language-service 16.0.0 it works perfectly. It looks like ngcc isn't used anymore and Angular16 emits an error when you try to use it,