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