Home

Issue: 45

Nuxt renderer says - renderToString is not a function

[issue link]

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?

This question is available on Nuxt.js community (#c37)