-
Notifications
You must be signed in to change notification settings - Fork 793
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
bug: NextJS 15 server side rendering errors. #6059
Comments
@christian-bromann Please check this one and give some estimate. It's a super annoying issue and a lot consumers use Nextjs nowadays. I would also check why hydration scripts not injected automatically when it's server as that would solve everything. I used to try hydrate script with custom Nextjs server just to check if it really works , and I could see all components on the page. It is not the option though as custom servers lacks tons of features |
@BohdanYavorskyi like any open source project, we appreciate any pull request that provide a resolution to this issue, especially if this is a bug that impacts you, you may consider providing support here. |
@BohdanYavorskyi @GtaExFab a potential fix has been implemented in ionic-team/stencil-ds-output-targets#562 and we plan to do a release tomorrow. Please keep an eye open and let us know if this problem got resolved after the upgrade, thanks! |
@christian-bromann thanks for the info. We will test as soon as possible to gather feedbacks and see if the bug is fixed. |
Hello @christian-bromann 👋 Unfortunately the new version 0.8.0 did not resolve this issue for me on Next.js 15 😞 |
@NSpehler can you provide a minimal reproduction case? |
Hi, all! _Internal error: Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, store}). If you meant to render a collection of children, use an array instead. https://github.com/GtaExFab/stenciljsnextjs15 |
Thanks for that @GtaExFab! |
Mhm .. not sure why it is failing this way. Any contributions that may resolve this bug are much appreciated! |
I managed to get the ssr part working again without a 500 error from the server side. I had to move all the After some checks of the created react component of the I will have to check the |
Prerequisites
Stencil Version
4.22.3
Current Behavior
Hi Ionic/Stencil Team !
We work on our Design system for 2 years now with StencilJS and we are facing a issue with StencilJS WebComponent with NextJS 15 server side rendering.
When we use the SSR of NextJS 15 we have this error below:
The server page is returned with a 500 error and load.
Just after, NextJS switch on client rendering -> all prerendered HTML is not present in source page (in chrome network tab)
If we try to build the NextJS project we have an error on Shadow dom serialization and the same error as shown.
Expected Behavior
The server page is generated without error and returned page contains all prerendered HTML with StencilJS components.
System Info
Steps to Reproduce
Install all packages
on root folder ->
Build projects in package with
stencil-components ->
react-library ->
react-library-ssr ->
nextjs15 ->
Try page client with client rendering -> OK
http://localhost:3000/client
Try page server with server side rendering -> KO.
http://localhost:3000/server
Page make a 500 error and switch to client mode with error.
if you use
A lot of errors are generated
Code Reproduction URL
https://github.com/GtaExFab/stenciljsnextjs15
Additional Information
Stackblitz project:
https://stackblitz.com/~/github.com/GtaExFab/stenciljsnextjs15
The text was updated successfully, but these errors were encountered: