mbj36 / vue-burger-menu

🍔 An off-canvas sidebar Vue component - https://vue-burger-menu.netlify.app/
MIT License
769 stars 111 forks source link

Failed to execute 'appendChild' on Nuxt #46

Closed IamTinashe closed 5 years ago

IamTinashe commented 5 years ago

It runs in development, but fails in production. I'm using Nuxt. Please assist Plugin:


import { Slide } from 'vue-burger-menu'

Vue.component('Slide', Slide)```

nuxt.config.js
```{ src: '~/plugins/vue-burger-menu.js', ssr: false}```

Component:
```<template>
  <Slide>
    <router-link
      :to="'/'"
      title="Home"
      id="Home"
    >
      <span>Home</span>
    </router-link>
    <router-link
      :to="'/profile'"
      title="Profile"
      id="Profile"
    >
      <span>Profile</span>
    </router-link>
    <router-link
      :to="'/blog'"
      title="Blog"
      id="Blog"
    >
      <span>Blog</span>
    </router-link>
    <router-link
      :to="'/photography'"
      title="Photography"
      id="Photography"
    >
      <span>Photography</span>
    </router-link>
    <router-link
      :to="'/social'"
      title="Social"
      id="Social"
    >
      <span>Social</span>
    </router-link>
    <router-link
      :to="'/connect'"
      title="Contact"
      id="Contact"
    >
      <span>Contact</span>
    </router-link>
  </Slide>
</template>```
mbj36 commented 5 years ago

@IamTinashe Can you check this issue https://github.com/mbj36/vue-burger-menu/issues/9 if it helps you ?

IamTinashe commented 5 years ago

@mbj36 Thanks, That's what I did. So when I'm in development it works fine. But in production it doesn't

mbj36 commented 5 years ago

Not sure what;s wrong then :( haven't tried Nuxt yet

IamTinashe commented 5 years ago
bug

https://www.iamtinashe.io/

roonie007 commented 5 years ago

I think this is related to #40 and I think you should update the vue-burger-menu to the last version (from yesterday), this commit Commit fd20b5f in this merge #44 should have fixed that problem

mbj36 commented 5 years ago

@IamTinashe please check above comment