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