Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Module not found: Error: Can't resolve '@angular/http' in 'angular-in-memory-web-api' #224

Description

@ManoharNuli

Tour of Heroes App In memory example as mentioned in angular.io is not working.
Make this compatible with Angular 7.
Please adopt the latest http module as per latest versions of angular.
Module directory has been changed from @angular/http to @angular/common/http in the latest versions of the Angular.

Activity

  1. vishal423 commented on Dec 7, 2018

    @vishal423
    Contributor

    There is already a PR to remove this dependency #223

    Till that's merged, you need to add @angular/http to your package.json dependencies to make it work

  2. darkn3rd commented on Dec 13, 2018

    @darkn3rd

    I started with Angular this month, and ran into this issue as well with Tour of Heroes tutorial.

  3. gentunian commented on Dec 18, 2018

    @gentunian

    As @vishal423 says, you could workaround by adding the dependency.

    This worked for me:

    npm install --save-dev @angular/http
    
  4. AkatQuas commented on Dec 23, 2018

    @AkatQuas

    Same issue here.
    screen shot 2018-12-23 at 12 02 35

  5. CaerusKaru commented on Dec 25, 2018

    @CaerusKaru
    Member

    With the release of v0.8.0, this should no longer be an issue. Please update to resolve.

  6. fizhar-alivia commented on Feb 3, 2020

    @fizhar-alivia

    im continuously facing this error i.e, module not found: Error: Can't resolve 'angular-in-memory-web-api' in '\my-prod-app\src\app' Even after intalling @angular/http through cmd. My angular version is 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions