Home

Issue: 1506

Help!! Nuxt js (npm run generate) cannot read property session

[issue link]

21083675_2040868842597352_6355083002986054469_o

Hi
I am getting the following error when i trying to generate my project. any idea

Route: '/'
TypeError: Cannot read property 'session' of undefined
    at nuxtServerInit (server-bundle.js:1974:12)
    at Array.wrappedActionHandler (C:\xampp\htdocs\chr\local\chr\node_modules\vuex\dist\vuex.js:604:15)
    at Store.dispatch (C:\xampp\htdocs\chr\local\chr\node_modules\vuex\dist\vuex.js:347:15)
    at Store.boundDispatch [as dispatch] (C:\xampp\htdocs\chr\local\chr\node_modules\vuex\dist\vuex.js:272:21)
    at Object._callee$ (server-bundle.js:1587:79)
    at tryCatch (C:\xampp\htdocs\chr\local\chr\node_modules\regenerator-runtime\runtime.js:65:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\xampp\htdocs\chr\local\chr\node_modules\regenerator-runtime\runtime.js:303:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\xampp\htdocs\chr\local\chr\node_modules\regenerator-runtime\runtime.js:117:21)
    at step (server-bundle.js:228:30)
    at server-bundle.js:239:13

pls,help
thank you so much

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