Static GitHub Issues

[138] Nuxt SSR — TypeError: Cannot redefine property: $Storage

prev: [DOC] Server Requirements
next: Module not found: Error: Can't resolve 'vertx' in v0.9.6

Hi! Thanks for framework! But I have some bug in dev mode with my custom plugin named "Storage". This plugin connect to Vue in file located in plugins folder and create in Vue instance thier namespace — Vue.$Storage & this.$Storage After twice code & page update/refresh, I have this stack-trace — vue ssr module can't redefine $Storage:

Vue.js error

TypeError: Cannot redefine property: $Storage
    at Object.defineProperties (<anonymous>)
    at defineProperties (__vue_ssr_bundle__:2235:18)
    at plugin (__vue_ssr_bundle__:2071:91)
    at Function.Vue.use (/Users/ruslan/projects/bazawinnerparser/node_modules/vue/dist/vue.runtime.common.js:3437:14)
    at Object.<anonymous> (__vue_ssr_bundle__:2022:45)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.<anonymous> (__vue_ssr_bundle__:1007:1)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.<anonymous> (__vue_ssr_bundle__:4750:65)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)

image

What this mean?

<!--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/c117">#c117</a>)</em></sub></div>