Dokumen tidak didefinisikan JavaScript di Nuxt JS

if (process.client) {
  <your js script>
}
Famous Frog