As noted by HydTechie (see commentary dated November 25, 1616 at 16:22), the error message can be very erroneous.
My initial problem was that the CodeMagazine problem May June 2017 “From zero to Crud in Angular: Part 1” had a typo using the import for “rxjs / add / operator / throw”, where the actual path should be “rxjs / add / observable / throw ".
But even after the fix and fix noted here and elsewhere, I did not get the exact error from the Chrome dev tool console. He accused zone.js of looking for a nonexistent throw.js library.
When I looked at the same code in IE, I found that I had type-o in my componentUrl file name, which for some reason broke out of my http service and the console output was caught there.
So, HydTechie rant blogspot, although not exhaustive, has correctly shown that true errors are not easy to find.
I found that I did not need to add anything outside the default angular quick launch package rxjs: {defaultExtension: 'js'} in my system jsconfig and fix the import' rxjs / add / operator / throw "; to import" rxjs / add / obserable / throw ";
// the product service will call the webapi for product collections import { Injectable } from "@angular/core"; import { Http, Response } from "@angular/http"; import { Observable } from "rxjs/Observable"; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/throw'; // fixed typo
from systemjs.config.js
// packages tells the System loader how to load when no filename and/or no extension packages: { app: { defaultExtension: 'js', meta: { './*.js': { loader: 'systemjs-angular-loader.js' } } }, rxjs: { defaultExtension: 'js' // this is fine as is } }
source share