mefechoel/svelte-navigator

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

Chunxei opened this issue · 1 comments

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:

  • OS: macOS Monterey 12.1
  • Browser: Brave
  • Version: 1.37.113
  • IDE: VS Code 1.66

Fixed with release of 3.1.6. Thanks for the PR!