Static GitHub Issues

[45] Nuxt renderer says - renderToString is not a function

prev: Add global css / auth-routes example
next: src folder?

I have trying to make use of the method called nuxt.renderRoute which indeed calls renderToString which throws an error saying TypeError: self.renderToString is not a function.

All I have able to debug is

1.renderToString is a function on vue-server-renderer https://github.com/vuejs/vue/tree/dev/packages/vue-server-renderer

  1. When calling this method, you pass it the context of Nuxt class and Nuxt class does not have renderToString method.

May be I am missing something?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c37">#c37</a>)</em></sub></div>