Closed xsjcTony closed 1 year ago
Just a guess, but the './types' path might be reserved because Svelte uses it for automatically typing the data returned from load functions.
Does it work if you change the name of the types file to something else?
The reserved name is ./$types
, so that can't be it.
I believe it's the svelte.config.ts
- you need that to be a svelte.config.js
, there's no TS support for that config file.
Transfering this to a discussion.
Describe the bug
SvelteKit is not recognising TypeScript code.
This is a mini project with some modifications based on the
SvelteKit
official template... I addedtailwindcss
and settings for normal SPA (because I need the router so I used kit).Can anyone have a look at my reproduction repo to see what I did wrong? Thanks for the help. I believe it should be my own issue since I believe there's no way that Svelte won't work with TypeScript.
Reproduction
https://github.com/xsjcTony/50projects50days-svelte
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response