7rs / pages

Fast, Readable and Flexible.
https://7rs.dev
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

SvelteComponentTyped #143

Closed 7rs closed 2 months ago

7rs commented 2 months ago

About bugs.

Argument of type 'typeof import("C:/Users/taiko/w/pages/node_modules/.pnpm/@iconify+svelte@3.1.6_svelte@4.2.16/node_modules/@iconify/svelte/dist/index")' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.

Possible causes:
- You use the instance type of a component where you should use the constructor type
- Type definitions are missing for this Svelte Component. If you are using Svelte 3.31+, use SvelteComponentTyped to add a definition:
  import type { SvelteComponentTyped } from "svelte";
  class ComponentName extends SvelteComponentTyped<{propertyName: string;}> {}
7rs commented 2 months ago

I guess this isn't bug by dependencies because can build.

7rs commented 2 months ago

https://www.reddit.com/r/sveltejs/comments/u4w0nm/vscode_svelte_ts_monorepo_recommendations/

it's too annoying fuck you shittest error

7rs commented 2 months ago

https://svelte.dev/docs/v4-migration-guide#sveltecomponenttyped-is-deprecated

are my dependencies old? im not sure