reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Calling new() on a Service not working #36

Closed danpoland closed 6 years ago

danpoland commented 6 years ago

When I try to call new() on my Services I get a Cannot read property 'scheme' of undefined. error. The error is being thrown in the rest method of the Resource class on the below line.

Base.forEach(this.getService().schema.relationships, (value, key) => {

Here is a screenshot of the actual console error.

capture

pablorsk commented 6 years ago

problem solved on 1.0.0-rc.7 :smile: