Open yuta-hayashi opened 5 years ago
I used shards-vue in universal mode of nuxt.js. The universal mode executes ssr.
universal
It did not work at all with the error document is not defined. But, it worked when I changed to spa mode.
document is not defined
spa
I cannot execute SSR or generate in nuxt.js.
I think it probably contains functions that cannot be executed in SSR. So when I set the plugin mode in nuxt.config.js to client, it worked fine.
nuxt.config.js
plugins: [{src:'~/plugins/shardsVue', mode: 'client'} ],
I think nuxt.js is one of the most popular frameworks and would you please add this to the documentation if you like?
Expected Behavior
I used shards-vue in
universal
mode of nuxt.js. The universal mode executes ssr.Current Behavior
It did not work at all with the error
document is not defined
. But, it worked when I changed tospa
mode.Steps to Reproduce
Context (Environment)
I cannot execute SSR or generate in nuxt.js.
Possible Solution
I think it probably contains functions that cannot be executed in SSR. So when I set the plugin mode in nuxt.config.js to client, it worked fine.
nuxt.config.js
I think nuxt.js is one of the most popular frameworks and would you please add this to the documentation if you like?