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
Recently I switched from Angular 9 to 10. On a new project I have issues to import interfaces automatically. For example I want to import this interface to my app.component.ts:
export interface TestInterface {
string: name;
}
It is located in src/app/testInterface.ts. When i try to import it in my app.component.ts:
test: testInterface;
I am using VSC and IntelliSense is not showing me the option to autoimport/import the interface anymore. When i press Ctrl+. for Quick Fix I receive the message: No code actions available. In Angular 9 with Typescript 3.8.3 everything works fine, IntelliSense shows me the autoimport option or I can import the interface with Ctrl+. Key Binding. If I manually add the import it works:
import { testInterface } from 'src/app/testInterface';
🔬 Reproduction
To reproduce this issue try to install the latest angular/cli (at the moment of writing v10.0.1):
Description
Recently I switched from Angular 9 to 10. On a new project I have issues to import interfaces automatically. For example I want to import this interface to my app.component.ts:
It is located in src/app/testInterface.ts. When i try to import it in my app.component.ts:
I am using VSC and IntelliSense is not showing me the option to autoimport/import the interface anymore. When i press Ctrl+. for Quick Fix I receive the message: No code actions available. In Angular 9 with Typescript 3.8.3 everything works fine, IntelliSense shows me the autoimport option or I can import the interface with Ctrl+. Key Binding. If I manually add the import it works:
🔬 Reproduction
To reproduce this issue try to install the latest angular/cli (at the moment of writing v10.0.1):
Then create a new project:
Name it as you wish, I have enabled routing and choosen CSS for stylesheets.
When you install Angular 9 and create an project:
Everything works as it should
🌍 Environment
My Environment is:
The text was updated successfully, but these errors were encountered: