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

Question: VSCode doesn't understand $lib alias for .svx files #682

Open
ChuanyuanLiu opened this issue Dec 31, 2024 · 1 comment
Open

Question: VSCode doesn't understand $lib alias for .svx files #682

ChuanyuanLiu opened this issue Dec 31, 2024 · 1 comment

Comments

@ChuanyuanLiu
Copy link

Hi, I wonder if there is a way to make VSCode understand $lib alias for SvelteKit.

image

The error seems to be VSCode specific, because the webpage renders correctly in spite of the typescript error. I can provide a demo project. I used npx sv create to create the demo project.

{
  "files.associations": {
    "*.svx": "svelte"
  },
}
@github-project-automation github-project-automation bot moved this to Triage + Refine in mdsvex Dec 31, 2024
@Engid
Copy link

Engid commented Jan 4, 2025

I had this too.. using the literal path (ie '../lib/test') worked for me but vs code still complains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage + Refine
Development

No branches or pull requests

2 participants