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