ronzeidman / ng2-ui-auth

an angular2 repository for authentication based on angular1's satellizer
MIT License
206 stars 64 forks source link

8-beta.4 fails to load under SystemJS #125

Closed timbell closed 7 years ago

timbell commented 7 years ago

Error: (SystemJS) XHR error (404 Not Found) loading http://foo.baz.com/appd/app1/node_modules/rxjs/operators.js

...

Error loading http://foo.baz.com/appd/app1/node_modules/rxjs/operators.js as "rxjs/operators" from http://foo.baz.com/appd/app1/node_modules/ng2-ui-auth/bundles/ng2-ui-auth.umd.js

ronzeidman commented 7 years ago

Seems you have an older version of rxjs. the beta uses Rxjs 5.5.0+ that have the new "lettable" operators that seems missing from your version

timbell commented 7 years ago

No, I'm on 5.5.2. I think it's a SystemJS thing (though that's an internal rxjs issue). I added the following to my systemjs.config.js to get around it:

map: {
...
  'rxjs/operators': 'node_modules/rxjs/operators/index.js'
}
ronzeidman commented 7 years ago

I'm guessing it will be common in any library using the new rxjs operators... I'm closing this issue. If you think there is a way I could mediate this in my end feel free to reopen this.