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

vite.config.ts intellisense error #6

Closed
Fractal-Tess opened this issue Aug 19, 2022 · 2 comments
Closed

vite.config.ts intellisense error #6

Fractal-Tess opened this issue Aug 19, 2022 · 2 comments

Comments

@Fractal-Tess
Copy link

They there,

When installing the template, and running the dev server, I'm getting this error:
image
It seems to be coming from the .svelte-kit folder that is generated at runtime.

Also if you take a look at the ambient.d.ts file inside of /node_modules/@sveltejs/kit/types/ambient.d.ts you can see the following conflict there as well.
image

@bfanger
Copy link
Owner

bfanger commented Aug 21, 2022

The vite.config.ts is not part of the includes, i've created a fix sveltejs/kit#6140 upstream.

As a workaround you could add:

  "include": [
    "./src/app.d.ts",
    "./src/**/*.js",
    "./src/**/*.ts",
    "./src/**/*.svelte",
    "./tests/**/*.js",
    "./tests/**/*.ts",
    "./tests/**/*.svelte",
    "./vite.config.ts"
  ]

to the /tsconfig.json

@Fractal-Tess
Copy link
Author

The vite.config.ts is not part of the includes, i've created a fix sveltejs/kit#6140 upstream.

As a workaround you could add:

  "include": [
    "./src/app.d.ts",
    "./src/**/*.js",
    "./src/**/*.ts",
    "./src/**/*.svelte",
    "./tests/**/*.js",
    "./tests/**/*.ts",
    "./tests/**/*.svelte",
    "./vite.config.ts"
  ]

to the /tsconfig.json

Thank you!

@bfanger bfanger closed this as completed Aug 23, 2022
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