Argument of type 'typeof Router' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'
Chunxei opened this issue · 1 comments
Chunxei commented
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:
- Import
Router
fromsvelte-navigator
- place
<Router> ... </Router>
at app root - See editor error
Expected behavior:
To work as expected without any errors.
Desktop:
- OS: macOS Monterey 12.1
- Browser: Brave
- Version: 1.37.113
- IDE: VS Code 1.66
mefechoel commented
Fixed with release of 3.1.6. Thanks for the PR!