afrad / angular2-websocket

Websocket wrapper for angular2 based on angular-websocket
Apache License 2.0
210 stars 84 forks source link

Not working, trying to load without the extension name #15

Open dessalines opened 8 years ago

dessalines commented 8 years ago

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
dessalines commented 8 years ago

The only way I could get this library working was to just copy the angular2-websocket ts file.