Property 'pipe' doesn't exist on type any[] | Observal

Multi tool use
Multi tool use












0















I am trying to build using 'ng build --prod'. but I am getting an error like




Property pipe doesn't exist on type any.




Component code:



search = (text$: Observable<string>) =>

text$.pipe(
debounceTime(300),
distinctUntilChanged(),
tap(() => this.searching = true),
switchMap(term => term.length < 2 ? :
this._service.search(term).pipe(
tap(() => this.searchFailed = false),
catchError(() => {
this.searchFailed = true;
// return of();
return ;
}))
),
tap(() => this.searching = false)
)


view code:



<input id="typeahead-http" type="text" class="form-control" placeholder="Enter Product Name" 
#input
(selectItem)="selectedItem($event,input)"
[class.is-invalid]="searchFailed"
[(ngModel)]="model"
[ngbTypeahead]="search"
[inputFormatter]="formatter"
[resultFormatter]="formatter" />
<span *ngIf="searching">searching...</span>
<div class="invalid-feedback" *ngIf="searchFailed">Sorry, this product could not be loaded.</div>









share|improve this question

























  • What version of Angular are you using?

    – robert
    Jan 19 at 16:47











  • I am using angular 6

    – sathish
    Jan 20 at 1:18
















0















I am trying to build using 'ng build --prod'. but I am getting an error like




Property pipe doesn't exist on type any.




Component code:



search = (text$: Observable<string>) =>

text$.pipe(
debounceTime(300),
distinctUntilChanged(),
tap(() => this.searching = true),
switchMap(term => term.length < 2 ? :
this._service.search(term).pipe(
tap(() => this.searchFailed = false),
catchError(() => {
this.searchFailed = true;
// return of();
return ;
}))
),
tap(() => this.searching = false)
)


view code:



<input id="typeahead-http" type="text" class="form-control" placeholder="Enter Product Name" 
#input
(selectItem)="selectedItem($event,input)"
[class.is-invalid]="searchFailed"
[(ngModel)]="model"
[ngbTypeahead]="search"
[inputFormatter]="formatter"
[resultFormatter]="formatter" />
<span *ngIf="searching">searching...</span>
<div class="invalid-feedback" *ngIf="searchFailed">Sorry, this product could not be loaded.</div>









share|improve this question

























  • What version of Angular are you using?

    – robert
    Jan 19 at 16:47











  • I am using angular 6

    – sathish
    Jan 20 at 1:18














0












0








0








I am trying to build using 'ng build --prod'. but I am getting an error like




Property pipe doesn't exist on type any.




Component code:



search = (text$: Observable<string>) =>

text$.pipe(
debounceTime(300),
distinctUntilChanged(),
tap(() => this.searching = true),
switchMap(term => term.length < 2 ? :
this._service.search(term).pipe(
tap(() => this.searchFailed = false),
catchError(() => {
this.searchFailed = true;
// return of();
return ;
}))
),
tap(() => this.searching = false)
)


view code:



<input id="typeahead-http" type="text" class="form-control" placeholder="Enter Product Name" 
#input
(selectItem)="selectedItem($event,input)"
[class.is-invalid]="searchFailed"
[(ngModel)]="model"
[ngbTypeahead]="search"
[inputFormatter]="formatter"
[resultFormatter]="formatter" />
<span *ngIf="searching">searching...</span>
<div class="invalid-feedback" *ngIf="searchFailed">Sorry, this product could not be loaded.</div>









share|improve this question
















I am trying to build using 'ng build --prod'. but I am getting an error like




Property pipe doesn't exist on type any.




Component code:



search = (text$: Observable<string>) =>

text$.pipe(
debounceTime(300),
distinctUntilChanged(),
tap(() => this.searching = true),
switchMap(term => term.length < 2 ? :
this._service.search(term).pipe(
tap(() => this.searchFailed = false),
catchError(() => {
this.searchFailed = true;
// return of();
return ;
}))
),
tap(() => this.searching = false)
)


view code:



<input id="typeahead-http" type="text" class="form-control" placeholder="Enter Product Name" 
#input
(selectItem)="selectedItem($event,input)"
[class.is-invalid]="searchFailed"
[(ngModel)]="model"
[ngbTypeahead]="search"
[inputFormatter]="formatter"
[resultFormatter]="formatter" />
<span *ngIf="searching">searching...</span>
<div class="invalid-feedback" *ngIf="searchFailed">Sorry, this product could not be loaded.</div>






angular






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 19 at 17:23









Talha Junaid

1,001820




1,001820










asked Jan 19 at 16:27









sathishsathish

1




1













  • What version of Angular are you using?

    – robert
    Jan 19 at 16:47











  • I am using angular 6

    – sathish
    Jan 20 at 1:18



















  • What version of Angular are you using?

    – robert
    Jan 19 at 16:47











  • I am using angular 6

    – sathish
    Jan 20 at 1:18

















What version of Angular are you using?

– robert
Jan 19 at 16:47





What version of Angular are you using?

– robert
Jan 19 at 16:47













I am using angular 6

– sathish
Jan 20 at 1:18





I am using angular 6

– sathish
Jan 20 at 1:18












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54269107%2fproperty-pipe-doesnt-exist-on-type-any-observalobject%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54269107%2fproperty-pipe-doesnt-exist-on-type-any-observalobject%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







s6b,vQBU,Dm0Je8uduskTLJmmdwZCd S O6rHHH Jfl8Ih6Y7By,ichzFz6T,zu,z8ud3V,TjIXrOW,Xx8,d0WrasHQ z8R50ug,0 5riQ,rMet
7 gOU5,KbY3u3FH 4cI7FGzDLnu,6VHbtRzTQcZJLayCHwch93xxWH2ePUsVcxXTdaaHmx eW6Yzn8A67ubOFlt2SrF62oEHx

Popular posts from this blog

How can a duplicate class be excluded from sbt assembly?

Cakephp 3.6: Create new view with dropdown and check boxes

database size increased after restoring on another drive