question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No pipe found with name 'currency' during Managing Data tutorial

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
petebacondarwincommented, Oct 13, 2021

Yes, and we have also spoken with StackBlitz to see if they can improve their generator.

1reaction
JoostKcommented, Oct 5, 2021

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 in AppModule. 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 of declarations in src/app/app.module.ts on line 28.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found