title: Vue/Nuxt/Vuex - [NUXT:SSR] [ERROR] [vuex] unknown getter
body: <p>The error appears when I use a v-for loop to go through the 'allPosts' data on my div. </p>
  
  <p>The Nuxt documentation says 'Modules: every .js file inside the store directory is transformed as a namespaced module'. Maybe I'm missing something in this regard?</p>
  
  <p><strong>pages/index.vue</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;template&gt;
    &lt;section id="postgrid"&gt;
      &lt;div v-for="post in allPosts" :key="post.id"&gt;&lt;/div&gt;
    &lt;/section&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import {mapGetters} from 'vuex'
  
  import PostTile from '@/components/Blog/PostTile'
  
  export default {
    components: {
      PostTile
    },
    computed: mapGetters(['allPosts'])
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>store/index.js</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import Vue from 'vue'
  import Vuex from 'vuex'
  
  import Posts from './posts'
  
  const store = new Vuex.Store({
    modules: {
      Posts
    }
  })</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>store/posts.js</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const state = () =&gt; ({
    posts: [
      {
        id: 0,
        title: 'A new beginning',
        previewText: 'This will be awesome don\'t miss it',
        category: 'Food',
        featured_image: 'http://getwallpapers.com/wallpaper/full/6/9/8/668959.jpg',
        slug: 'a-new-beginning',
        post_body: '&lt;p&gt;Post body here&lt;/p&gt;',
        next_post_slug: 'a-second-beginning'
      },
      {
        id: 1,
        title: 'A second beginning',
        previewText: 'This will be awesome don\'t miss it',
        category: 'Venues',
        featured_image: 'https://images.wallpaperscraft.com/image/beautiful_scenery_mountains_lake_nature_93318_1920x1080.jpg',
        slug: 'a-second-beginning',
        post_body: '&lt;p&gt;Post body here&lt;/p&gt;',
        prev_post_slug: 'a-new-beginning',
        next_post_slug: 'a-third-beginning'
      },
      {
        id: 2,
        title: 'A third beginning',
        previewText: 'This will be awesome don\'t miss it',
        category: 'Experiences',
        featured_image: 'http://eskipaper.com/images/beautiful-reflective-wallpaper-1.jpg',
        slug: 'a-third-beginning',
        post_body: '&lt;p&gt;Post body here&lt;/p&gt;',
        prev_post_slug: 'a-second-beginning',
        next_post_slug: 'a-forth-beginning'
      }
    ]
  })
  
  const getters = {
    allPosts: (state) =&gt; state.posts
  }
  
  export default {
    state,
    getters
  }</code></pre>
  </div>
  </div>
  </p>