Closed fvandenbulcke closed 4 years ago
Hi @fvandenbulcke, I noticed the createStore
is the Vuex store instance itself, it should be a function that returns the instance instead.
from
const store = new Vuex.Store({...
to
const store = () => new Vuex.Store({...
I need to update the Readme
file to avoid mistakes.
ok thank you for your help My project is now running and I close this issue
Hi Felipe!
I fail to run you lib with a store. I've describe tested cases below and push a minimal project here. Can you see what i was missing?
The configuration: hypernova@2.5.0 hypernova-vue@3.0.4 vue-server-renderer@2.6.11
The
client.js
is defined as described in you doc:import { renderVuex } from 'hypernova-vue'; import LysModule from '../src/components/LysModule.vue'; import createStore from '../src/store'; export default renderVuex('VUE_MODULE', LysModule, createStore);
In
server.js
when i use therenderVuex
function as follow:This error is returned:
In
server.js
when i keep therenderVue
function as follow:The variable $store seems not to be instancied and this error is returned: