device
device copied to clipboard
'__VLS_ctx.$device' is of type 'unknown'.
I have this strange error on my code.
im using the $device on layouts/default.vue like this:
<template>
<div>
<div v-if="$device.isDesktop" class="flex w-screen">
<div class="h-50 bg-cyan-400 text-center text-4xl">NavBar</div>
<div class="flex-1"><slot /></div>
</div>
<div v-else class="flex h-screen flex-col">
<div class="h-50 bg-cyan-400 text-center text-4xl">Header</div>
<div class="flex-1"><slot /></div>
</div>
</div>
</template>
and i got this strange error.
Same here
Same here
Same here
Same here
Same here
Same here
Found a shimming solution: https://github.com/nuxt-modules/device/issues/136
Let's track in https://github.com/nuxt-modules/device/issues/136.