Hello,
I recieve error while trying to impleement SSR with NextJS
from what i see, there is something adding styles and also reorganizing attributes. Any idea what could be bad ?
Hello,
I recieve error while trying to impleement SSR with NextJS
from what i see, there is something adding styles and also reorganizing attributes. Any idea what could be bad ?
Hello @matuskocian,
Could you please confirm the Builder SDK version and Next.js version you are using? This will help us better understand the issue and attempt to reproduce it.
Additionally, you can try removing the node_modules
folder and package-lock.json
file, then reinstalling the dependencies to see if that resolves the issue:
rm -rf node_modules package-lock.json
npm install
Thanks,
We are using these versions, and the error is for some reason only in editor. On the localhost:3000 where is sever hosted there is no problem
@builder.io/react": “^8.0.9”,
@builder.io/sdk": “^6.0.4”,
@builder.io/sdk-react": “^4.0.2”,
“next”: “15.1.7”,
“react”: “19.0.0”,
“react-dom”: “19.0.0”,
Removing and installing did not help
Hi @matuskocian,
Are you using the App Router or Page Router? Also, could you share your Builder integration code or provide a minimal reproducible GitHub repo to help us debug the issue?
Looking forward to your response!
Best,
We are using Next App Router. Implemented by this example builder/examples/next-js-app-router at main · BuilderIO/builder · GitHub
Only differences are in versions. We also use builder.tsx as client component.
Hello @matuskocian,
We attempted to reproduce the issue on our end but were unable to do so. You can find the GitHub repository we used for testing here: next-15-builder-app
That said, we noticed that you have @builder.io/sdk-react
version ^4.0.2
installed. Could you share the reason for using this SDK along with @builder.io/react
? It might help us better understand your setup and troubleshoot further.
Looking forward to your response!
Best,
As i Said previously the problem is not on the localhost:3000 page, but directly inside builder.io editor page. Once i open console on Builder.io: Visual Development Platform…(whatever-page) the error pops out. On the localhost:3000 i do not get any errors.
Also sdk-react I am using for isPreviewing so i dont set headers and for flag that indicates if i am in editor or page
Hello @matuskocian,
Unfortunately, we haven’t been able to reproduce the issue, even when using this example.
If you’re still experiencing the issue, we’ll need a minimal reproducible repository to investigate further.
Thanks,