I have this message with nuxt.js : [Vue warn]: Property or method "ip" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
components/Tutorial.vue
<div>
test {{ ip }}
</div>
</template>
<script>
export default {
async asyncData({ $axios }) {
const ip = await $axios.$get('http://icanhazip.com')
return { ip }
}
}
</script>