Answer the question
In order to leave comments, you need to log in
How will it access the Vue instance on the server when rendering?
In the nuxt settings I wrote the following -
build: {
** You can extend webpack config here
*/
extend (config, ctx) {
// https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
config.resolve.alias["vue$"] = "vue/dist/vue.esm.js"
},
render: function (h) {
let template = '';
Answer the question
In order to leave comments, you need to log in
I want to get it in the render component
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question