Cichy
Cichy

Reputation: 5292

PhpStorm error in Angular template: Unresolved pipe

I have project generated by Angular CLI ver 7.3.9 (Angular ver 7.2.0) and IDE: PhpStorm ver 2019.1.2

In template of my component I using UpperCasePipe:

<h2>{{ title | uppercase }}</h2>

Application works fine. Uppercase works. Letters are big but PhpStorm report an error:

Unresolved pipe uppercase
Checks that TypeScript called functions are valid

preview:

enter image description here

PS
I have installed AngularJS plugin

Upvotes: 7

Views: 6844

Answers (2)

Right-click on node_modules -> Mark Directory As -> 'Not Excluded'

Upvotes: 0

lena
lena

Reputation: 93728

Please make sure that node_modules/@angular/common/src/pipes folder included in index (check its color in the Project tool window) - pipes won't be resolved if this directory is excluded

Upvotes: 13

Related Questions