I wanted to have urls that I could copy and paste and therefore switched from spa to universal in nuxt.config. However I get this error saying "document is not defined". I then googled my way to this answer saying I should use the <no-ssr>
element.
However after using it on my index.vue, I still get the same error. Anyone who can help me out?
It's node_modules/aws-amplify-vue/dist/aws-amplify-vue.common.js who is complaining about the document missing.
And to test at the moment my index.vue is following:
<template>
<v-layout column justify-center align-center>
<div>
<no-ssr placeholder="loading...">
<div>hello</div>
</no-ssr>
</div>
</v-layout>
</template>
And I have other pages in the project without <no-ssr>
if that's what causing this.