@angular/http/index has no exported member 'HTTP_PROVIDERS'
See original GitHub issue**I’m submitting a …
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
@angular/http/index has no exported member ‘HTTP_PROVIDERS’ on Typescript by Webpack
Expected behavior
‘HTTP_PROVIDERS’ is exported as a member on ‘@angular/http’
Please tell us about your environment:
OS: Windows 7 IDE: VS Code Package Manager: NPM 3.10.6 Angular Version: @angular/http: “^2.0.0”
-
Angular version: 2.0.0
“@angular/http”: “^2.0.0”
-
Language: [TypeScript]
Issue Analytics
- State:
- Created 7 years ago
- Comments:10
Top Results From Across the Web
typescript - "@angular/http/index has no exported member of ...
HTTP -PROVIDERS is not used anymore. Import HttpModule to your ngModule instead and add it to your imports.
Read more >Angular – “@angular/http/index has no exported member of ...
I have attached images of package.json and main.ts file. Best Solution. HTTP-PROVIDERS is not used anymore.
Read more >NgModule FAQ - Angular
Import NgModules whose public (exported) declarable classes you need to ... Its only purpose is to add http service providers to the application...
Read more >error ts2305: module '"@angular/core"' has no exported ...
Cannot find module '@angular/core' or its corresponding type declarations. "baseUrl": "src" ... node_modules/@angular/core/core"' has no exported member .
Read more >node_modules/ng-mdb-pro/index&quot - MDBootstrap
/node_modules/ng-mdb-pro/index"' has no exported member 'CarouselComponent'. ... from '@angular/common/http'; import { HttpModule } from '@angular/http'; ...
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 have checked that HTTP_PROVIDERS is removed on 2.0.0-rc.6 Thus, it is not an issue,
but the API Reference should be updated to new on https://angular.io/docs/ts/latest/api/http/index/Http-class.html (the HTTP_PROVIDERS said on the page)
It is my solve import { HttpModule } from ‘@angular/http’; @NgModule({ imports: [ HttpModule ] })
API References and also code examples updates would be nice. base_request_options.ts