Here's a plunk with a full working version of a service that angular.io 
provides online:

https://angular.io/resources/live-examples/server-communication/ts/plnkr.html

My config.js is the same as the one provided in the example plunk. 
Therefore, my build failure [Cannot find module '@angular/http'] does not 
appear to be due to gaps in my config file. I even copied/pasted the import 
from the example into my service.ts to account for possible typos or other 
weirdness. I checked the output console of the build and no additional info 
was returned. Any ideas for additional troubleshooting?


On Thursday, July 21, 2016 at 11:14:29 AM UTC-6, random512 wrote:
>
> I added the following property to my systemjs.config.js map object in my 
> Angular 2 app:  '@angular/http': 'https://npmcdn.com/@angular/http'
>
> When I ctrl-click on the url it attempts to download a js file. However, 
> when I try to import from '@angular/http' at the top of my service.ts, the 
> compiler returns the error "Cannot find module '@angular/http'." Is there 
> an additional step that I'm missing in order for this module to be 
> recognized and usable by my angular app? I'm using Angular version 
> 2.0.0-rc.4.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to