plone / plone.restapi-angular

A simple Angular SDK to build web sites easily on top of the Plone RESTAPI
MIT License
12 stars 11 forks source link

rxjs Issues #82

Open scrooke opened 5 years ago

scrooke commented 5 years ago

Hello Eric!

Me again, sorry to bother you, I am still having issue with running this. I am trying to prove that I can draw content from the Plone CMS in one breath, and then call my .net core web apis in the next. I am sure that this is possible, but I am having some issues with the plone.restapi-angular.. as below.

errors

I have also seen errors.. Throw is not a function...

Any help greatly appreciated!

Steve,

Glamurio commented 5 years ago

Hey! So, I've been trying to run this thing myself, what I can advice is that you do a checkout of the newest version here on GitHub, that should solve the Observable.of is not a function.

As for Observable.throw is not a function, this is actually an error in the code regarding the usage of a deprecated function. In newer versions of RxJS you'll want to use throwError() instead.

I believe the causes to be authentication.service.ts:219, loading.service.ts:67 and api.service.ts:113, once you change the respective Observable.throw to throwError instead, it should work.