Skip to content

import { navigate } from "sv-router/generated" in .svelte.ts files #71

@moritz4

Description

@moritz4

I'm following the documentation for programmatic navigation. And have put the following in a svelte.ts file:

import { navigate } from "sv-router/generated";

while this works when I run npm run dev, but results in a TS error in VS code:

Cannot find module 'sv-router/generated' or its corresponding type declarations.ts(2307)

Is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions