Skip to content

How can i use it in Nextjs13 appDir #1861

@gimwachan-git

Description

@gimwachan-git

I've seen the example on https://github.com/tanem/react-nprogress/tree/master/examples/next-router.
However, when I switch to appDir mode, I find that I can't use next/router in either layout.tsx or template.tsx.
Additionally, router.events seems to be missing in next/navigation.

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