question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@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:closed
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

19reactions
LeeHyungGeuncommented, Sep 18, 2016

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 ] })

4reactions
gencebaycommented, Sep 25, 2016

API References and also code examples updates would be nice. base_request_options.ts

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found