The Angular Language Server uses /tsconfig.json instead of only /src/ui/tsconfig.json, resulting in it not resolving imports from modules in /src/ui/node_modules.
I'm not quite sure what all the implications of this issue might be, but in my case, this resulted in the Angular extension for Visual Studio Code reporting:
mat-divider is not a known element:
- If
mat-divider is an Angular component, then verify that it is included in the @Component.imports of this component.
- If
mat-divider is a Web Component then add CUSTOM_ELEMENTS_SCHEMA to the @Component.schemas of this component to suppress this message.
app.ts(18, 16): Error occurs in the template of component App.
when trying to use an imported component in my template, and also:
Some language features are not available. To access all features, enable strictTemplates in angularCompilerOptions.
In order to fix this, /src/ui can be excluded from /tsconfig.json.
The Angular Language Server uses
/tsconfig.jsoninstead of only/src/ui/tsconfig.json, resulting in it not resolving imports from modules in/src/ui/node_modules.I'm not quite sure what all the implications of this issue might be, but in my case, this resulted in the Angular extension for Visual Studio Code reporting:
when trying to use an imported component in my template, and also:
In order to fix this,
/src/uican be excluded from/tsconfig.json.