Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Specify the main entry point for angular2-in-memory-web-api #1541

Closed
@bouzlibop

Description

@bouzlibop

Overview of the Issue

Today I was following both 5 minutes quickstart and tour of heroes tutorial. Great resources!

What I found is that in systemjs.config.js example shown in 5 minutes quickstart the main entry point for angular2-in-memory-web-api is not set. On the other hand it is properly set everywhere else, eg here.

Not having this field set is causing following errors once one gets to the last part of the tutorial:

zone.js:101 GET http://localhost:3000/node_modules/angular2-in-memory-web-api/ 404 (Not Found)
node_modules:17 Error: Error: XHR error (404 Not Found) loading 

_Motivation for or Use Case_

This won't be an issue for someone who is following Run the live example links to Plunker or is using code from https://github.com/angular/quickstart.

Nonetheless, if someone (like me for example) took this advice:

Create a folder called angular2-tour-of-heroes and follow the QuickStart steps which provide the prerequisites, the folder structure, and the core files for our Tour of Heroes.

and used the systemjs.config.js mentioned above, one will run into some issues.

Operating system
OS X El Capitan Version 10.11.5

Browsers
Chrome Version 51.0.2704.63 (64-bit)

Suggested Fix

Change this line to 'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },

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