I have upgraded from rc11 to @nuxtjs/next
(6f6a184) and my store no longer works - Nuxt complains:
nuxt state should be a function in store/authentication/index.js
If I change state
to a function in the store/authentication/index.js
module then Nuxt defaults back to modules mode and as such things like a login
action in my authentication
module need to be called via authentication/index/login
rather than just authentication/login
like it should be.
I believe my store/index.js
file is configured correctly for classic mode:
'use strict'
import { Store } from 'vuex'
import authentication from './authentication'
export const store = () => new Store({
modules: {
authentication
},
actions: {
nuxtServerInit () {
// nothing here yet
}
}
})
<!--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/c2170">#c2170</a>)</em></sub></div>