As you'll see, it doesn't try to load the .js, but an http://localhost:3001/angular2-websocket/angular2-websocket which of course doesn't exist. I'm using a default systemjs configuration.
Error: patchProperty/desc.set/wrapFn@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:830:27
Zone</ZoneDelegate</ZoneDelegate.prototype.invokeTask@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:423:24
Zone</Zone</Zone.prototype.runTask@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:320:29
ZoneTask/this.invoke@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:490:29
Error loading http://localhost:3001/angular2-websocket/angular2-websocket as "angular2-websocket/angular2-websocket" from http://localhost:3001/app/chat/chat-service.js
As you'll see, it doesn't try to load the
.js
, but anhttp://localhost:3001/angular2-websocket/angular2-websocket
which of course doesn't exist. I'm using a default systemjs configuration.