# @prismicio/next@1.x using old \`useRouter\` hook

**URL:** <https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [February 7, 2023, 8:00pm UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374 "2023-02-07T20:00:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klynger](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/klynger/32/6165_2.png) [@klynger](https://community.prismic.io/u/klynger)\
**Post date:** [February 7, 2023, 8:00pm UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374/1 "2023-02-07T20:00:25Z")

</div>

I'm having problems migrating to Next@13.x because when I import `@prismicio/next` I get the following error

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/1/16e8033d017cbf204ad17ea3d678a94e963d42a1.jpeg)  
After looking into the code of your next integration it seems that the new version is using the old `useRouter` hook that comes from `next/router`, but it should be using the hooks from `next/navigation` ([Next documentation](https://beta.nextjs.org/docs/routing/linking-and-navigating#userouter-hook)).

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [February 8, 2023, 11:24am UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374/3 "2023-02-08T11:24:51Z")

</div>

Hello @klynger

Thanks for reaching out to us.

Thanks for reaching out,

Next.js 13 is not yet fully supported with Prismic, but you can check this [thread](https://community.prismic.io/t/creating-new-next-js-13-app-and-trying-to-migrate-from-an-existing-next-js-12-app/11463) that might be helpful.

Best,  
Priyanka

---

<div class="post-metadata">

**Author:** ![klynger](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/klynger/32/6165_2.png) [@klynger](https://community.prismic.io/u/klynger)\
**Post date:** [February 8, 2023, 12:01pm UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374/4 "2023-02-08T12:01:42Z")

</div>

Thank you for the answer, Priyanka. I understand that the support is not 100%, but the thing is that in the Prismic documentation it says that we should use the 1.x version of `@prismicio/next` to get the support for Next@13, but it uses the things that wil break in Next@13.x. It seems like a bug and I didn't find a post about it anywhere.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/0/0688d083da05464ccc31058b24512492a380cba2.jpeg)

> **[@prismicio/next Technical Reference](https://prismic.io/docs/technical-reference/prismicio-next)**
>
> @prismicio/next is the official Prismic package for creating web apps with Prismic and Next.js.

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [February 15, 2023, 11:17am UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374/5 "2023-02-15T11:17:30Z")

</div>

Hello @klynger

Sorry for the late response. I was on vacation.

I need more information:

1. At what step do you get the error?
2. Are you using nextJs 13 with Slice Machine?

I find some resources it might be helpful.  
You can learn more about the decision here:

1. [feat!: support Next 13, drop support for Next 12 by angeloashmore · Pull Request #48 · prismicio/prismic-next · GitHub](https://github.com/prismicio/prismic-next/pull/48)
2. [Next.js 13 and Prismic Slice Machine - YouTube](https://www.youtube.com/watch?v=Bx5VoBWpCYs)

You can open a ticket in our issue tracker with more details.

I am looking forward to hearing back from you.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [February 16, 2023, 11:24am UTC](https://community.prismic.io/t/prismicio-next-1-x-using-old-userouter-hook/12374/6 "2023-02-16T11:24:51Z")

</div>

Hey, here’s some more info:

- v1 supports Next.js 13 when using its traditional `pages` directory. `@prismicio/next` does not yet support Next.js 13's beta `app` directory.

Thanks,  
Priyanka
