Skip to content

Auto import in angular typescript is not working #28773

Closed
@micobarac

Description

@micobarac
  • VSCode Version:
    Version 1.29.1
    Typescript 3.1.4

  • OS Version:
    macOS 10.14.1

Steps to Reproduce:

  1. Create new angular app:
    ng new app

  2. Add new library:
    yarn add @datorama/akita

  3. Create session.model.ts:

export interface Session {
  id: ID;
  firstName: string;
  lastName: string;
  token: string;
}

Auto import is not working. I get this error:

[ts] Cannot find name 'ID'. [2304]
any

Starting VSCode with code --disable-extensions didn't help :(

Metadata

Metadata

Assignees

Labels

Domain: TSServerIssues related to the TSServerWorking as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions