Title: Argument of type 'Error' is not assignable to parameter of type 'Scheduler' · Issue #3672 · angular/angular-cli · GitHub
Open Graph Title: Argument of type 'Error' is not assignable to parameter of type 'Scheduler' · Issue #3672 · angular/angular-cli
X Title: Argument of type 'Error' is not assignable to parameter of type 'Scheduler' · Issue #3672 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS Seirra Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal:...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS Seirra Versions. Please run ng --version. If there's noth...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS Seirra Versions. Please run ng --version. If there's ...
Opengraph URL: https://github.com/angular/angular-cli/issues/3672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Argument of type 'Error' is not assignable to parameter of type 'Scheduler'","articleBody":"\u003e Please provide us with the following information:\r\n\u003e ---------------------------------------------------------------\r\n\r\n### OS?\r\n\u003e Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\nMacOS Seirra\r\n\r\n### Versions.\r\n\u003e Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n```\r\nangular-cli: 1.0.0-beta.24\r\nnode: 7.2.1\r\nos: darwin x64\r\n@angular/common: 2.4.0\r\n@angular/compiler: 2.4.0\r\n@angular/core: 2.4.0\r\n@angular/forms: 2.4.0\r\n@angular/http: 2.4.0\r\n@angular/platform-browser: 2.4.0\r\n@angular/platform-browser-dynamic: 2.4.0\r\n@angular/router: 3.4.0\r\n@angular/compiler-cli: 2.4.0\r\n```\r\n\r\nAfter the update to angular-cli beta 24 i started getting this error:\r\n\r\n```\r\nERROR in ./src/app/shared/services/baseapi.service.ts\r\nModule build failed: Error: /Users/hassan/Code/project/src/app/shared/services/baseapi.service.ts (22,20): Argument of type 'Error' is not assignable to parameter of type 'Scheduler'.\r\n Property 'SchedulerAction' is missing in type 'Error'.)\r\n/Users/hassan/Code/project/src/app/shared/services/baseapi.service.ts (43,20): Argument of type 'Error' is not assignable to parameter of type 'Scheduler'.)\r\n at _checkDiagnostics (/Users/hassan/Code/project/node_modules/@ngtools/webpack/src/loader.js:116:15)\r\n at /Users/hassan/Code/project/node_modules/@ngtools/webpack/src/loader.js:141:17\r\n @ ./src/app/shared/services/user.service.ts 18:0-51\r\n @ ./src/app/app.module.ts\r\n @ ./src/main.ts\r\n @ multi main\r\n```\r\n\r\nThis is the code in context:\r\n```\r\n\thttpGet( URL: string, requestOptions = this.getRequestOptions() ): Observable\u003cany\u003e {\r\n\t\treturn this.http.get(URL, requestOptions)\r\n\t\t\t.retryWhen(error =\u003e error.delay(200))\r\n\t\t\t.timeout(20000, new Error('Request timeout')) \u003c===== LINE 22\r\n\t\t\t.map(this.extractData).catch(this.handleError);\r\n\t}\r\n```\r\n\r\nIf i comment line 22 everything works fine. However, i do want to throw that error of timeout. Any suggestions please?","author":{"url":"https://github.com/hassanasad","@type":"Person","name":"hassanasad"},"datePublished":"2016-12-21T09:32:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/3672/angular-cli/issues/3672"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17b18877-4ac2-e5bc-c484-278db2d624ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDAA:3C6258:1BAAB32:2403E25:6976FCD0 |
| html-safe-nonce | 2924b5f524847c4ec5cd876966bed6a2ab612a50cee0aebc00f6a37754e9dddc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREFBOjNDNjI1ODoxQkFBQjMyOjI0MDNFMjU6Njk3NkZDRDAiLCJ2aXNpdG9yX2lkIjoiMzM1MDk3MjIwOTUzMzc0NjM4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e104e74a8f65f11db8097ab5fee380c7510bbfe704d6a28206324972a56d730f |
| hovercard-subject-tag | issue:196885188 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e598d63dc9d0918c1e1a68fd0b2b86f866ba9223ad08662737bc8d92d7a70841/angular/angular-cli/issues/3672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e598d63dc9d0918c1e1a68fd0b2b86f866ba9223ad08662737bc8d92d7a70841/angular/angular-cli/issues/3672 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) MacOS Seirra Versions. Please run ng --version. If there's noth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hassanasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width