Static GitHub Issues

[1637] Window is not defined when importing vue-table2 plugin

prev: Error with v-text
next: multiple route params on a page

I am importing a vuetable-2 plugin: https://github.com/ratiw/vuetable-2.

I am registering it globally trough plugins/vue-table.js.

When referencing the component on nuxt page I get window is not defined error inside node_modules/vuetable-2/dist/vuetable-2.js

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