# Having issue setting SliceMachine with Nextjs

**URL:** <https://community.prismic.io/t/having-issue-setting-slicemachine-with-nextjs/15524>\
**Category:** Prismic Administrative Support\
**Tags:** nextjs, typescript, page-builder, slice-machine\
**Created:** [March 20, 2024, 8:02pm UTC](https://community.prismic.io/t/having-issue-setting-slicemachine-with-nextjs/15524 "2024-03-20T20:02:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junnexclusive](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/junnexclusive/32/7149_2.png) [@junnexclusive](https://community.prismic.io/u/junnexclusive)\
**Post date:** [March 20, 2024, 8:02pm UTC](https://community.prismic.io/t/having-issue-setting-slicemachine-with-nextjs/15524/1 "2024-03-20T20:02:29Z")

</div>

I was watching TrostCodes video on prismic youtube channel, i finally set up my developement, but when i run it, my slice machine doesnt have another page and homepage slice , and the frontend has this error in the image below, how do i fix this

 ![Screenshot 2024-03-20 at 20.51.25](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/e/ee38c66c38000f0a45a8d9cc53990987e43e94e5.png)  
heres the repo : [repo](https://github.com/Junnygram/olaleyeoye)

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [March 21, 2024, 10:58am UTC](https://community.prismic.io/t/having-issue-setting-slicemachine-with-nextjs/15524/3 "2024-03-21T10:58:01Z")

</div>

A post was merged into an existing topic: [No documents were returned - Dark Modern Website](https://community.prismic.io/t/no-documents-were-returned-dark-modern-website/15520)

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [March 21, 2024, 10:59am UTC](https://community.prismic.io/t/having-issue-setting-slicemachine-with-nextjs/15524/5 "2024-03-21T10:59:27Z")

</div>

I merged this with another post on the same issue linked above.
