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

7
  • 2
    why are you using php storm for angular? and if there is plugin, it should be Angular or Angular2, not AngularJS Commented May 16, 2019 at 14:23
  • i think its your code editor problem. Commented May 16, 2019 at 14:24
  • AngularJS !== Angular 7. Maybe try to install a more recent plugin, or try using vscode. Commented May 16, 2019 at 14:26
  • 3
    AngularJS plugin description: Support for Angular and AngularJS projects. - phpStorm has only this one plugin for Angular Commented May 16, 2019 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 Commented May 16, 2019 at 15:34

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

6 Comments

Yes, that was a problem. I had a node_modules/ folder as Excluded. Thx
How do you include node_module in index?
the easiest way to do this is to shut down the IDE, delete the project .idea folder and then re-open the project root folder in IDE with File > Open - this will re-create the libraries, making sure that all required modules are indexed
For me right-clicking the node_modules folder and then 'Mark Directory as' > 'Not Excluded' worked
Note: If you don't exclude node_modules, they'll start showing up when searching for files. This solution fixes one thing, but breaks another.
|
0

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

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.