No pipe found with name 'currency' during Managing Data tutorial
See original GitHub issueDescription
I’m going through the tutorial and I’ve just finished the Managing Data steps and I’m getting this error:
Error in src/app/cart/cart.component.html (5:25) No pipe found with name 'currency'.
As someone who is learning Angular for the first time, this is really confusing.
Did I miss something? Removing the currency pipe leaves me with this error:
Can't bind to 'ngForOf' since it isn't a known property of 'div'
And from searching around seems to be a problem importing the BrowserModule.
Any help would be much appreciated.
Here’s my current fork: https://stackblitz.com/edit/angular-hbimmm?file=src/app/app.module.ts
What is the affected URL?
https://angular.io/start/start-data#managing-data
Please provide the steps to reproduce the issue
No response
Please provide the expected behavior vs the actual behavior you encountered
No response
Please provide a screenshot if possible
No response
Please provide the exception or error you saw
No response
Is this a browser-specific issue? If so, please specify the device, browser, and version.
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[Debugging] The pipe {name} could not be found - YouTube
In this video, you'll learn what the error "The pipe { name } could not be found " means, how to debug it,...
Read more >angular8 - Angular - No pipe found with name - Stack Overflow
I occasionally get this error message in VS Code, although my code is correct. I just have to open the xxx.module.ts file and...
Read more >NG0302: Pipe not found! - Angular
Angular can't find a pipe with this name. The pipe referenced in the template has not been named or declared properly. In order...
Read more >Currency pipe is not working in compliance with the ... - GitHub
I'm submitting a bug report. ... I configure the LOCALE_ID provider to the Dutch language on the app module level. ... to see...
Read more >Angular Pipes: Learn How to Create and Implement
Pipes are a simple function in angular used to transform the output. Learn ✔️ how to use built-in pipes ✔️create custom pipes ✔️...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, and we have also spoken with StackBlitz to see if they can improve their generator.
It appears that the tutorial is missing a step. During the creation of
CartComponent
using the “Angular Generator”, the component was created but it was not added as a declaration inAppModule
. This causes the component to not have access to any other components and pipes, as it needs to be declared in an NgModule to get access to all components/directives/pipes that it declares and imports.You can get it to work by adding
CartComponent
to the list ofdeclarations
insrc/app/app.module.ts
on line 28.