Skip to content

docs: toh-pt6 - missing Angular-in-memory-web-api NPM dependency #17535

Closed

Description

@0x-2a

I'm submitting an update request for the tutorial docs


[ ] Regression (behavior that used to work and stopped working in a new release)
[ ] Bug report 
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

In following one of the tutorial workflows, the angular in memory web api dependency is missed. As a user, I followed this workflow:

  1. Visit https://angular.io/guide/quickstart
  2. Complete steps 1-4 (notice the package.json is missing "angular-in-memory-web-api" if entering into the tutorial workflow this way.
  3. Read "Next Step" at bottom of page "If you're new to Angular, continue with the tutorial. You can skip the "Setup" step since you're already using the Angular CLI setup."
  4. Skipped setup section of the tutorial (still missing in-memory-web-api dependency)
  5. Completed tutorial through HTTP: Simulate the web API
  6. Error: missing angular-in-memory-web-api

Expected behavior

In the tutorial https://angular.io/tutorial/toh-pt6#heroes-and-http, let users know to check for the npm dependency in their package.json if it is not there: npm install --save angular-in-memory-web-api dependency.

Minimal reproduction of the problem with instructions

See Current behavior above.

What is the motivation / use case for changing the behavior?

Developers learning angular may get stuck at this issue.

Please tell us about your environment


Angular version: 4.2.3

Browser:
- [x] Chrome (desktop) version 58.0.3029
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: v6.10.2
- Platform: Mac

Others:
None.

Activity

  1. changed the title [-]Quickstart "skip setup" tutorial workflow misses NPM dependency[/-] [+]docs: toh-pt6 - missing Angular-in-memory-web-api NPM dependency[/+] on Jun 23, 2017
  2. wardbell commented on Jun 23, 2017

    @wardbell
    Contributor

    Probably have similar problem in every sample app that uses the in-mem-web-api. Confirm.

  3. steelstring94 commented on Jun 28, 2017

    @steelstring94

    I have the same problem. Is there any workaround until this is fixed?

  4. 0x-2a commented on Jun 28, 2017

    @0x-2a
    Author

    Navigate to your project's folder from the terminal and install the missing dependency with npm:
    npm install --save angular-in-memory-web-api

  5. added this to the needsTriage milestone on Feb 28, 2018
  6. modified the milestones: needsTriage, Backlog on Apr 25, 2018
  7. jenniferfell commented on Apr 25, 2018

    @jenniferfell
    Contributor

    docarea=tutorial

  8. sreevani-ship-it commented on Jun 17, 2018

    @sreevani-ship-it
    Contributor

    The setup section of the tutorial does not add dependency to in-memory-web-api. instead, HTTP section of the tutorial has instructions to install in-memory-web api. So even if you miss setup instruction in the tutorial, you will still be directed to the step that installs in-memory-web-api.

  9. trotyl commented on Jun 19, 2018

    @trotyl
    Contributor

    This one was fixed by #19811 as per #19811 (comment).

  10. angular-automatic-lock-bot commented on Sep 13, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  11. locked and limited conversation to collaborators on Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions