Static GitHub Issues

[2532] Avoid using non-primitive value as key, use string/number value instead. (v. 1.0.0)

prev: How can I separated public website from authenticated website
next: Error when updating Nuxt 1.0.0

Since updating to 1.0.0 I get the following error:

Vue warn: Avoid using non-primitive value as key, use string/number value instead.

(found in \<Root>)

It only appears when I set the layout property on a non root path page. E.g. for 'pages/login.vue', however the error does not appear for 'pages/index.vue' .

I tried to deduce what could be causing it, but even when the layout is as basic as it gets the error persists:

pages/login.vue

<template>
  <div>
    Hello World
  </div>
</template>

<script>
  export default {
    layout: ['navAndFooter']  // Deleting this line fixes the error
  }
</script>

layouts/navAndFooter.vue

<template>
  <div>
    <nuxt/>
  </div>
</template>

<script>
  export default {}
</script>
<!--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/c2200">#c2200</a>)</em></sub></div>