-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError when rendering BuilderComponent in Next.js app #2579
Comments
Hi @maciej-trebacz ! Thanks for the report. Have you noticed any functionality of the site break, or does this issue seem to only manifest as a console error? Is the issue resolved if you downgrade the version of |
@mrkoreye so far I didn't notice any functionality issues, but the error in the console does sound like something is breaking, so I'm worried there will be issues down the line. Downgrading to 3.0.13 does indeed get rid of this error. There is one other bit of information that's probably important that I left out (I've updated the original issue above) - I'm using the Edge runtime for the page that renders the BuiderComponent: export const runtime = 'edge'; Commenting out this line does make the error go away. But I need this page to be rendered using Edge runtime for better performance. |
Great, thank you for the extra details. This will help with the investigation. |
Same error here, I am using Next.js 14 with app router and 'edge' runtime, here is part of my package.json
I am getting @mrkoreye Is there any update on this? |
Loom issue reproduced: Github reproduced repo: https://github.com/Manic-sh/nextjs-app-edge-runtime |
Same issue here, but we can't comment out the edge-runtime since we need that for Cloudflare Pages. |
Describe the bug
When running a Next.js app that renders
BuilderComponent
from@builder.io/react
I get the following error in the server console:There is no additional information printed in the console, and the page in the browser seems to render correctly. This happens on any builder page I visit.
I'm using a starter Next.js project with the Builder code taken straight from the documentation, and latest Builder SDK versions.
To Reproduce
Steps to reproduce the behavior:
export const runtime = 'edge';
to the page with BuilderComponentAdditional context
From package.json:
The text was updated successfully, but these errors were encountered: