Auto-import of /utils not working in VS-Code in template block
Even though my application builds and works fine, the auto-import of my function
The function is defined like this:
Inside the
but in the
If I add
defy the usefullness of auto-imports.
Gives me the error:
Does anyone know how to get this working?
t() doesn't get recognized inside the <template>.The function is defined like this:
Inside the
<script setup lang="ts"> block the auto-import works,but in the
<template> block it doesn't.If I add
import { t } from '~/utils/translate.ts' to the script it starts working in the template, but that woulddefy the usefullness of auto-imports.
Gives me the error:
Does anyone know how to get this working?