Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'items' of undefined #3

Closed
rubenberendsen opened this issue Apr 3, 2018 · 1 comment
Closed

Cannot read property 'items' of undefined #3

rubenberendsen opened this issue Apr 3, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rubenberendsen
Copy link

Code:
computed: {
getContent() {
return this.$deliveryClient.items()
.type('homepage')
.get()
.subscribe(response => console.log('DeliveryClient Response', response));
}
},

TypeError
Cannot read property 'items' of undefined

@Domitnator Domitnator added the bug Something isn't working label Apr 3, 2018
@Domitnator Domitnator self-assigned this Apr 3, 2018
@Domitnator
Copy link
Owner

Hi @rubenberendsen ,

I published a new release!

To problem is that Nuxt only supports Promises. The example in the readme.md i was giving was using
the observable operator of rxjs. So i therefor updated the readme.md.

Client side call are now working as expected!

For server side call's however, there is still a rxjs issue but i created a new bug for that: #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants