Not importing correctly - pipe not found
See original GitHub issueInstalled this package, imported into my main @NgModule like below, and placed it in my imports under that, but still get the error at the bottom.
import { MomentModule } from 'angular2-moment';
zone.js?fad3:355 Unhandled Promise rejection: Template parse errors:
The pipe 'amDuration' could not be found ("
<tr>
<td>Service</td>
<td>[ERROR ->]{{ 365 | amDuration:'seconds' }}</td>
Have an angular 2 project using webpack that is similar in structure to https://github.com/AngularClass/angular2-webpack-starter
Any thoughts? Should this work when not using system.js?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
The pipe ' ' could not be found angular2 custom pipe
In my case I've declared the pipe in a separate module and imported this pipe module in any other module having components using...
Read more >NG0302: Pipe not found! - Angular
Use the pipe name to trace where the pipe is declared and used. To resolve this error, ensure that: ... If you recently...
Read more >[Debugging] The pipe {name} could not be found - YouTube
Key moments. View all · Verify that the Pipe Is Available in the Appropriate Ng Module · Verify that the Pipe Is Available...
Read more >[Solved] Pipe not found in custom component - Ionic Forum
The pipe 'min2duration' could not be found. I have the pipes grouped in pipes module: import { NgModule } from '@angular/core'; // Pipes...
Read more >The pipe 'mypipe' could not be found · Issue #1403 - GitHub
Hi all, I'm trying to use pipes and I've developed my own very simplified ... could not be found Here's the code to...
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
@AKApumkin in my projects, I didn’t need to add anything to the CLI config json - it should work out of the box.
I have the same issue, but for the angular CLI JSON config file. there is a lot of conflicting information on where to put external libraries. Some say the in Scripts tag, some say inside packages and some say after packages. I have tried all, but no joy. below is half the config file, any nudge in the right direction would be appreciated.