Skip to content

Linting error: Property '$t' does not exist on type #208

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

Closed
Temepest74 opened this issue Apr 1, 2025 · 2 comments
Closed

Linting error: Property '$t' does not exist on type #208

Temepest74 opened this issue Apr 1, 2025 · 2 comments

Comments

@Temepest74
Copy link

I think my issue is related to #197 as it happens only in update 2.8.0

This is my error code

Property '$t' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<__VLS_Props, {}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.

8 {{ $t("table.name") }}: {{ entityName }}

with my code being

<script setup lang="ts">
defineProps<{
	entityName: string
}>();
</script>
<template>
	<p class="mb-3">
		{{ $t("table.name") }}: <span class="font-bold">{{ entityName }}</span>
	</p>
</template>
@avt00
Copy link

avt00 commented Apr 16, 2025

I have the same issue

@Temepest74
Copy link
Author

I have the same issue

I solved my issue by replacing @vue/runtime-core to vue in:

declare module "@vue/runtime-core" {
	interface ComponentCustomProperties {
		route: typeof ziggyRoute
		$page: {
			props: InertiaPageProps["props"] & AppPageProps
		}
	}
}

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

2 participants