New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The paths setting in tsconfig.json causes issues #183
Comments
Here i have the same problem. |
related to angular/angular#16382 |
i have the same problem
|
@maxisam Could you write here how you code structure looks like? Especially where app.module.ts and shared.module.ts are located. Do you use barels (index.ts)? I would like to mention that if you use |
root I don't use barrels. It is a normal CLI layout. The project is generated by cli. It has paths setting. |
Same issue here, the |
This config solved the problem for me:
|
I'm using Angular-CLI and also have this problem when using an external component library (which I'm the author). I tried to change the |
@thiagoaos see angular/angular#16382 (comment) |
Thanks @aitboudad but that didn't work for me. I finally took the time to update my App to You can see the error being [Angular] Cannot read property 'isSkipSelf' of null |
@ghiscoding after installing |
@aitboudad Yes I had done that too but still got the error. |
This is not working for me either, even after installing @angular/language-service |
I can also report the same problem. This is only occurring in VS Code with the language service extension. WebStorm has no problem with it by default and resolves everything. |
any updates on this? |
@chuckjaz any ideas? |
angular/angular#16382 fixed this and it was released as Angular.ng-template 0.1.9. @fxck Can you please check if you're running the latest version? |
@kyliau |
Closing this for now since issue is fixed. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I have TSLint (5.7.0), codelyzer (3.2.1) and angular lang service 0.1.7 installed on vscode 1.17.0 (windows)
In my angular cli (1.4.5) project
If I have the following setting in tsconfig
and my import would be like
import { SharedModule } from '@app/shared/shared.module';
I will have lots of error like this in my template showing in vscode with red underlines.
[Angular] Property binding ngIf not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".
But if I import it with relative path
import { SharedModule } from '../../shared/shared.module';
The problem goes away.
at first, I thought it was vscode-tslint https://github.com/Microsoft/vscode-tslint/issues/276#event-1292520818
But it seems like it is from Angular Language Service
The text was updated successfully, but these errors were encountered: