Custom pipes not found within Angular CLI Library
See original GitHub issueDescribe the bug
I’m getting an error The pipe 'reverseString' could not be found
in the .HTML
file that uses the custom pipe but the application builds and runs fine during runtime.
The bug can be found in this project: Angular Library Demo
To Reproduce
Steps to reproduce the behavior:
- Make sure you have
Angular Language Service
extension installed and enabled - Clone
https://github.com/18clans/demo-pipe
npm i
ng build demo-lib
- Error will be in
src > app > app.component.html
Expected behavior
When you navigate to src > app > app.component.html
, you should see an error when your mouse hovers over the custom pipe.
Logs
No error logs
Screenshots

Additional context Old issue
I tested this out with a stand-alone Angular project and everything works as it should. There was no error in the .HTML
file and it ran just fine. An example project can be found here: Working demo project.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
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 >Angular custom pipe not working 'pipe not found'
I am trying to create a custom pipe in my Angular app but keep getting the 'no pipe found with name "currencyFormat"' error...
Read more >Angular library: Module not found error | by Tanya Gray
This project is an Angular app and Angular library in one project. The app consumes the library directly, not via npm.
Read more >[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, and prevent...
Read more >Custom Pipes in Angular With Examples
If we are not passing any parameter to the custom pipe, angular cli will return following error. {{ 100 | power}}. error TS2554:...
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 Free
Top 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
I see 3 issues in you demo project.
projects\demo-lib\src\public_api.ts
and all its dependencies. You need to use full path to file or add \index to your export statements. ex: useexport * from "./reverse-string/index";
instead ofexport * from "./reverse-string";
. (ng-packagr/ng-packagr#195)"enableIvy": false
to angularCompilerOptions inprojects\demo-lib\tsconfig.lib.json
I have created branch with all changes.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.