-
Notifications
You must be signed in to change notification settings - Fork 38
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
Generated types dir is not recognized in Svelte compoenents #292
Comments
Now that sveltejs/kit#5778 is merged, all page data is now typed with these generated props, which makes this very vital to have. Could this please be implemented soon? |
For now, a possible hack is to specify the full URL, but this just looks extremely fugly: <script lang="ts">
import type { PageData } from ".svelte-kit/types/src/routes/$types";
</script> |
What exactly is the error you are getting / what is wrong? I don't see anything red in the screenshot. |
|
Migrating to YouTrack... Kind of an old issue, it works in 2023.1/2023.2. |
When trying to use generated types for the
load
function in SvelteKit, as such:I get the following error:
my
tsconfig.json
is the standard one from the template:Details
And the generated types work as expected in regular typescript files.
(Note: the aliases declared in SvelteKit's generated
tsconfig.json
work just fine. It's just the generated typedefs themselves which don't work)The text was updated successfully, but these errors were encountered: