device icon indicating copy to clipboard operation
device copied to clipboard

'__VLS_ctx.$device' is of type 'unknown'.

Open joseehilton147 opened this issue 1 year ago • 7 comments

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.

image

joseehilton147 avatar Apr 03 '23 21:04 joseehilton147

Same here

dmashoshin avatar Apr 27 '23 10:04 dmashoshin

Same here

zhixXiang avatar May 09 '23 12:05 zhixXiang

Same here

TonyFresneau avatar Jun 13 '23 07:06 TonyFresneau

Same here

Henvy-Mango avatar Oct 16 '23 09:10 Henvy-Mango

Same here

maprangsoft avatar Nov 17 '23 13:11 maprangsoft

Same here

arv-asommer avatar Jan 23 '24 07:01 arv-asommer

Found a shimming solution: https://github.com/nuxt-modules/device/issues/136

arv-asommer avatar Jan 23 '24 07:01 arv-asommer

Let's track in https://github.com/nuxt-modules/device/issues/136.

DamianGlowala avatar Apr 12 '24 17:04 DamianGlowala