mefechoel / svelte-navigator

Simple, accessible routing for Svelte
Other
509 stars 39 forks source link

Argument of type 'typeof Router' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent' #69

Closed Chunxei closed 2 years ago

Chunxei commented 2 years ago

Describe the bug: Importing Router into my app gives the IDE error mentioned in the title. Importing any svelte component from svelte-navigator gives a similar error. The app runs despite the errors.

To Reproduce:

  1. Import Router from svelte-navigator
  2. place <Router> ... </Router> at app root
  3. See editor error

Expected behavior: To work as expected without any errors.

Screenshots:

Screenshot 2022-04-26 at 06 56 21

Desktop:

mefechoel commented 2 years ago

Fixed with release of 3.1.6. Thanks for the PR!