Learning Tauri with examples/web, got lint error with $api. #5942
Unanswered
thelastfantasy
asked this question in
Q&A
Replies: 1 comment
-
umm, I created a /// <reference types="vite/client" />
declare module '$api' {
export const NAME: string
export function greet(name: string): Promise<any>
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
file path:
examples\web\src\routes\+page.svelte
Editor is VScode.
It seems alias set in vite.config.ts is not correctly resolved in svelte file.
The program runs very well, but it's difficult to develop without lint check.
Any idea to solve this? 🙏
Beta Was this translation helpful? Give feedback.
All reactions