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

Using in Angular 7 #81

Closed scrooke closed 5 years ago

scrooke commented 5 years ago

Hello Anyone!

I see in the changelog for this project that updates were made to fix the breaking changes with rxjs in Angular 6. I am considering Plone as the content management system for my company and I am trying to put together a proof of concept with Plone and Angular. When I try to use it following a fresh install of Angular 7 I get warnings about requiring Angular 5.

npm WARN @plone/restapi-angular@2.1.0 requires a peer of @angular/common@^5.0.0 but none is installed. You must install peer dependencies yourself.

and compile errors...

ERROR in ../../node_modules/@angular/core/src/facade/async.d.ts(8,25): error TS2307: Cannot find module 'rxjs/Subject'. ../../node_modules/@angular/core/src/facade/async.d.ts(9,28): error TS2307: Cannot find module 'rxjs/Observable'.

So my issue is, as much as I hunt around I can't find a way around this, an I was wondering if anyone else has?? Or if there are any plans to update this project to run using Angular 6+

kind regards, Steve.

ebrehault commented 5 years ago

Oh I guess we forgot to add rxjs-compat in the dependencies, sorry.

Just install it and you should be fine on Angular 7.

scrooke commented 5 years ago

Thanks very much, that works a treat now. :)