Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Error TS2 339: Property 'timeout' does not exist on type 'Observable'

$
0
0

@anton_klochko wrote:

Good day !

Since I updated my project to 4.0.0-beta.12 I have been getting the following error.

ERROR in src/app/pages/deactivate-device/deactivate-device.ts(171,53): error TS2
339: Property ‘timeout’ does not exist on type ‘Observable <Response’.

I add to page.

import {timeout} from ‘rxjs/operators’;

I use.

this.http.post(this.actions, data).timeout(40000).subscribe(serverData => {

}, err => { }

ionic info:

Ionic:

ionic (Ionic CLI) : 4.2.1 (C:\Users\anton\AppData\Roaming\npm\nod
e_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.12
@angular-devkit/build-angular : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/angular-toolkit : not installed

Cordova:

cordova (Cordova CLI) : 7.1.0
Cordova Platforms : not available
Cordova Plugins : not available

System:

(C:\Users\AppData\Local\Android\sdk)
NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 7

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>