Skip to content

The Angular Language Server uses /tsconfig.json instead of only /src/ui/tsconfig.json #50

Description

@EGJ-Moorington

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:

  1. If mat-divider is an Angular component, then verify that it is included in the @Component.imports of this component.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions