-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
SvelteKit Example Broken - Types #308
Comments
This fix worked for me: #128 (comment) |
I'm running into this as well. Things are set up correctly, the icons are working, but WebStorm is giving me the However, declare module 'virtual:icons/*' {
import { SvelteComponent } from 'svelte'
import type { SvelteHTMLElements } from 'svelte/elements'
export default class extends SvelteComponent<SvelteHTMLElements['svg']> {}
}
declare module '~icons/*' {
import { SvelteComponent } from 'svelte'
import type { SvelteHTMLElements } from 'svelte/elements'
export default class extends SvelteComponent<SvelteHTMLElements['svg']> {}
} |
Describe the bug
By cloning the repo, and opening the
sveltekit
example folder within an IDE. The type defs are brokwn, see attached screenshot.This is also not working on a project of mine with the same error and unsure why the types are not resolving.
Cannot resolve directory 'virtual:icons'
Reproduction
Repo - /examples/sveltekit
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: