You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In angular 19 standalone imports are the default so setting "standalone: true" in component declaration is not needed/recommended.
However VisualStudio does not recognize the imports and shows this error: 'imports' is only valid on a component that is standalone.(-992010)
Also everything that depends on those imports also shows errors. The template and code editors are riddled with false positive errors.
Update the language service to recognize that angular 19+ components are standalone by default and don't need the extra "standalone: true" decoration.
The text was updated successfully, but these errors were encountered:
Can you confirm, e.g. by looking at the "Angular Language Service Extension" output in the Output window, that the version of @angular/language-server being used is 19 or higher?
Otherwise it could seem related to #78 and version 17 of the language server being bundled with the extension, and a local version only being used if installed directly into the solution directory.
I tried updating to version 19.0.3 of @angular/language-server, but the issue of not taking into consideration the new default of implying standalone: true when not specifying standalone persists. and now a component with standalone unspecified is recognized as being standalone.
In angular 19 standalone imports are the default so setting "standalone: true" in component declaration is not needed/recommended.
However VisualStudio does not recognize the imports and shows this error: 'imports' is only valid on a component that is standalone.(-992010)
Also everything that depends on those imports also shows errors. The template and code editors are riddled with false positive errors.
Update the language service to recognize that angular 19+ components are standalone by default and don't need the extra "standalone: true" decoration.
The text was updated successfully, but these errors were encountered: