Hello, how can I add sweetalert2 to nuxt.js application. I placed it in the build.vendor array, imported it in the page and it says
ReferenceError: document is not defined at node_modules/sweetalert2/dist/sweetalert2.js:76:40
<!--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/c137">#c137</a>)</em></sub></div>