7

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

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Cichy
  • 4,602
  • 3
  • 23
  • 28
  • 2
    why are you using php storm for angular? and if there is plugin, it should be Angular or Angular2, not AngularJS – Ala Abid May 16 '19 at 14:23
  • i think its your code editor problem. – Gurpreet Singh May 16 '19 at 14:24
  • AngularJS !== Angular 7. Maybe try to install a more recent plugin, or try using vscode. – Bernard Pagoaga May 16 '19 at 14:26
  • In company we are developing [Laravel](https://laravel.com/) project and all employee got [phpStorm](https://www.jetbrains.com/phpstorm/) – Cichy May 16 '19 at 14:26
  • 3
    AngularJS plugin description: _Support for Angular and AngularJS projects._ - phpStorm has only this one plugin for Angular – Cichy May 16 '19 at 14:27
  • 2
    is `node_modules/@angular/common/src/pipes` folder included in index (check its color in the **Project** tool window)? Also, does the issue persist after caches invalidation (**File | Invalidate caches, Invalidate and restart**)? If yes, please create a support ticket, providing your idea.log – lena May 16 '19 at 15:34
  • Make sure you import the pipe in the module – Ollie Sep 08 '20 at 04:12

2 Answers2

13

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

lena
  • 90,154
  • 11
  • 145
  • 150
0

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

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 24 '22 at 12:36