U
U
Umid2019-06-13 17:58:22
typescript
Umid, 2019-06-13 17:58:22

Logging this.$store === undefined on initial render on server, how to fix (Nuxt + Typescript)?

I'm using this template: https://github.com/nuxt/nuxt.js/tree/dev/examples/...
I'm running in universal mode
I'm trying to access this.$store on initialization, which gives me the following:
5d026428eb6bf608872350.png
Just wrap in if(process.browser) is impossible, because this page should be indexed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Umid, 2019-06-14
@DarCKoder

The problem was in the name of the getter. Shouldn't have used 'data'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question