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

Error after updating to 0.1.12 #58

Closed
sanjeevkpandit opened this issue Oct 20, 2016 · 7 comments
Closed

Error after updating to 0.1.12 #58

sanjeevkpandit opened this issue Oct 20, 2016 · 7 comments

Comments

@sanjeevkpandit
Copy link

I got this error after updating to 0.1.12.

Failed to load resource: the server responded with a status of 404 (Not Found)
Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/traceur
    Error: XHR error (404 Not Found) loading http://localhost:3000/traceur
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:3000/traceur
    Unable to load transpiler to transpile http://localhost:3000/node_modules/angular-in-memory-web-api/index.js
    Error loading http://localhost:3000/node_modules/angular-in-memory-web-api/index.js as "angular-in-memory-web-api" from http://localhost:3000/app/app.module.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:3000/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:3000/traceur
    Unable to load transpiler to transpile http://localhost:3000/node_modules/angular-in-memory-web-api/index.js
    Error loading http://localhost:3000/node_modules/angular-in-memory-web-api/index.js as "angular-in-memory-web-api" from http://localhost:3000/app/app.module.js

We also tried it in angular.io quickstart but got the same error.

The application works with the older versions(0.1.9 and 0.1.10) without any errors.

Please let us know if you need something else.

@orzeh
Copy link

orzeh commented Oct 21, 2016

Try to upgrade to 0.1.13 and fix your configuration according to the RELEASE_NOTES

@sanjeevkpandit
Copy link
Author

@orzeh I tried using 0.1.13 and updated the configuration, but the same error occurs.

@orzeh
Copy link

orzeh commented Oct 21, 2016

@sanjeevkpandit if you follow chapter 7 HTTP form the angular.io Tour of Heroes tutorial change your app.module.ts from:

// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api/in-memory-web-api.module';

to:

// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';

as mentioned in the README.

@lukasFrajt
Copy link

ohh I have the same problem..

@sanjeevkpandit
Copy link
Author

sanjeevkpandit commented Oct 22, 2016

@orzeh I did the same thing as mentioned in RELEASE_NOTES and README but, no luck.

@lukasFrajt
Copy link

@sanjeevkpandit please sent my your systems.config.js or make sure you did this after update

change the mapping to:

'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'

then delete from packages:

'angular-in-memory-web-api': {

    main: './index.js',

    defaultExtension: 'js'

  }

@sanjeevkpandit
Copy link
Author

@coklin3107 I forgot to remove from the packages. It's working now. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants