Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joseehilton147 opened this issue Apr 3, 2023 · 8 comments
Closed

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

joseehilton147 opened this issue Apr 3, 2023 · 8 comments

Comments

@joseehilton147
Copy link

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

@dmashoshin
Copy link

Same here

3 similar comments
@zhixXiang
Copy link

Same here

@Aurion72
Copy link

Same here

@Henvy-Mango
Copy link

Same here

@maprangsoft
Copy link

Same here

1 similar comment
@arv-asommer
Copy link

Same here

@arv-asommer
Copy link

Found a shimming solution: #136

@DamianGlowala
Copy link
Collaborator

Let's track in #136.

@DamianGlowala DamianGlowala closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants