Auto suggest for angular 2 typescript broken

I'm not sure if it's an issue with the way they've structured their files now (the folder is now "@angular" instead of "angular2".)

But if I type "@Component( ... )" with no imports, it doesn't allow me to alt+enter to auto import "@Component" or any other angular 2 function anymore.

 

5 comments
Comment actions Permalink

I'm having this same issue. I'm using 2016.3.1

0
Comment actions Permalink

Works fine for me. As soon as I enter `@Compo` and choose `Component from completion, I get Component auto-imported:

 

import {Component} from "@angular/core";
@Component
export class TestComponent {}
0
Comment actions Permalink

The auto suggest feature worked for me until recently. Now when I type '@Component' typescript complains and WebStorm does not offer an automatic fix.

I'm currently using TypeScript 2.0.10, Angular 2.4.8 and angular-cli 1.0.0-beta.32

Anybody else having this problem?

Edit: Problem resolved. I fixed my problem by removing the .idea folder and re-importing the project.

0
Comment actions Permalink

Thank you Almar! Your edit solve my issue.

0

Please sign in to leave a comment.