# Why my output in nextjs seems off

**URL:** <https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148>\
**Category:** Technical Questions\
**Tags:** react, nextjs\
**Created:** [January 24, 2023, 5:21pm UTC](https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148 "2023-01-24T17:21:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaesis](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@aaesis](https://forum.builder.io/u/aaesis)\
**Post date:** [January 24, 2023, 5:21pm UTC](https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148/1 "2023-01-24T17:21:22Z")

</div>

Below screenshot under data it is HTML which it is not rendering well.

 ![Screenshot 2023-01-25 011752](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/f89542edd3dd3165def44f5f094de945fdfb1ef3.png)

Below screenshot under data it is blocks which rendering well.

 ![Screenshot 2023-01-25 011825](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/2/2b6e06900c1b0f1999967438b350ecc42de97e32.png)

Can you please tell me why it output like this? First screenshot I am using nextjs13 app directory, while the other is using nextjs13 - pages. Please help!

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [January 24, 2023, 5:43pm UTC](https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148/2 "2023-01-24T17:43:43Z")

</div>

Hi @aaesis,

Could you please share the example API call for both requests, so that we can investigate this further?

---

<div class="post-metadata">

**Author:** ![aaesis](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@aaesis](https://forum.builder.io/u/aaesis)\
**Post date:** [January 24, 2023, 5:48pm UTC](https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148/3 "2023-01-24T17:48:48Z")

</div>

Thanks for quick reply.

For the second screenshot which is working, I am using this example below:

> **[GitHub - BuilderIO/nextjs-builder-edge-personalization](https://github.com/BuilderIO/nextjs-builder-edge-personalization)**
>
> Contribute to BuilderIO/nextjs-builder-edge-personalization development by creating an account on GitHub.

For the 1st one which is not rendering. I am using next13-app directory.

```auto
async function loadBuilder<Tdata>(): Promise<Tdata> {
  const content =
    (await builder
      .get("page", {
        apiKey: builderConfig.builderKey,
        url: "/partners",
      })
      .promise()) || null;

  return content;
}

```

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [January 27, 2023, 6:25pm UTC](https://forum.builder.io/t/why-my-output-in-nextjs-seems-off/3148/4 "2023-01-27T18:25:41Z")

</div>

Hi @aaesis,

There is a slight chance this is not solvable until below issue is solved [Monitor Next.js 13 Layout integration with Emotion + MUI · Issue #21 · accelist/nextjs-starter · GitHub](https://github.com/accelist/nextjs-starter/issues/21)

[#21 Monitor Next.js 13 Layout integration with Emotion + MUI](https://github.com/accelist/nextjs-starter/issues/21)

Next.js 13 was released with built-in layout support in `/app` folder-based project. However, Emotion and MUI are not compatible yet with it. This issue tracks the related issues for implementing the above-mentioned feature: ~~[nextauthjs/next-auth#5639](https://github.com/nextauthjs/next-auth/issues/5639)~~ next-auth is now compatible with Node.js 18~~[nextauthjs/next-auth#5650](https://github.com/nextauthjs/next-auth/issues/5650)~~ next-auth is now compatible with Next.js 13We can now upgrade to Next.js 13, but we cannot use `/app` folders yet until these issues are solved:  
[vercel/next.js#41994](https://github.com/vercel/next.js/issues/41994)[emotion-js/emotion#2928](https://github.com/emotion-js/emotion/issues/2928)[mui/material-ui#34896](https://github.com/mui/material-ui/issues/34896)[mui/material-ui#34898](https://github.com/mui/material-ui/issues/34898)[mui/material-ui#34905](https://github.com/mui/material-ui/issues/34905)
