Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

SystemJS XHR error while running application #1

Closed
jerno opened this issue Oct 17, 2016 · 2 comments
Closed

SystemJS XHR error while running application #1

jerno opened this issue Oct 17, 2016 · 2 comments

Comments

@jerno
Copy link

jerno commented Oct 17, 2016

Description:
Getting error when running application (with "angular2-rest-client" dependency)

Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/traceur
Error loading http://localhost:3000/node_modules/angular2-rest-client/index.js as "angular2-rest-client" from http://localhost:3000/app/app.service.js

Steps To Reproduce:

  1. npm install angular2-rest-client
  2. add it to dependencies
  3. Seen an error Error loading http://localhost:3000/node_modules/angular2-rest-client/index.js as "angular2-rest-client"

Comment:
It looks like the content of index.js isn't a valid javascript.
Maybe it's not transpiled to JS?

index.js of the v1.0.9 is:

export * from './src/angular2-rest-client';  
//# sourceMappingURL=index.js.map
@gizm0bill
Copy link
Owner

Actually it only works if bundling with something like webpack. I'll make an umd bundle soon!
Thanks!

@gizm0bill
Copy link
Owner

I've added the UMD bundle, should work with System.js just like in the angular2 quickstart tutorial.

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

2 participants