document is not defined nuxtjs code example Example: document is not defined javascript in nuxt js if (process.client) { <your js script> }