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

Support Server Side calls #5

Closed
Domitnator opened this issue Apr 8, 2018 · 6 comments
Closed

Support Server Side calls #5

Domitnator opened this issue Apr 8, 2018 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Domitnator
Copy link
Owner

Server side calls are throwing an exception.

For example:

asyncData ({ app }) {
      app.$deliveryClient.items().type('page').get().toPromise().then((response) => { 
        return { list: response.items } 
      });
  },

is throwin an exception:

"XMLHttpRequest is not supported by your browser"

image

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

Enngage commented May 17, 2018

Hey, I released new version which includes node.js support ootb. We also renamed package on npm to kentico-cloud-delivery

@Domitnator
Copy link
Owner Author

@Enngage : Thanks for your update! Will take a look at it at Friday, kind of busy right now!

@Domitnator
Copy link
Owner Author

kenticocloud-nuxt-module now uses the new Kentico Cloud Delivery SDK. So server side calls are now supported!

@Enngage
Copy link

Enngage commented May 25, 2018

Awesome, looks good! One thing I noticed in your readme is that you say that only Promises are supported (I'm not familiar with Nuxt at all) and in that case you might actually be ok with leaving the rxjs out of the dependencies because you won't be using its operators anyway. I have this example without rxjs completely

@Domitnator
Copy link
Owner Author

I already tried removing the dependency but the Nuxt project won't compile without the rxjs dependency:

image

@Enngage
Copy link

Enngage commented May 25, 2018 via email

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