-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: In Ionic 6, IonCol doesn't work in SSR #24446
Comments
Thanks for the issue! This issue has been labeled as In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly. Thank you! |
@SofianeDjellouli thanks for reporting this issue! At this time, web components that leverage the shadow DOM, are unable to be SSR: whatwg/dom#510 (comment) The I can discuss with the Stencil team after the New Year if there's any plans to add a fallback for |
That would be great @sean-perkins ! Also, please note that |
@SofianeDjellouli thanks for the extra context 🙂 I believe us moving to custom elements build instead of Stencil hydrated web components could be related. I'll assign myself so this issue doesn't get lost in Holiday Triage. |
Issue appears to be around here: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/col/col.tsx#L6 In v5 the web components were lazy loaded with Stencil, which likely mocks the We will need to introduce a few extra checks into this component to alleviate that. We'll capture as a bug and prioritize. |
Hello @SofianeDjellouli could you check this dev build in your example app and let me know if that resolves the yarn add @ionic/[email protected] |
@sean-perkins I am experiencing the same bug. In my case, I'm trying to get Ionic 6 to work with Next.js. I've just tried with the latest dev build and it's not yet working for me. My reproduction repo here: https://github.com/Polarisation/ionic-next-js |
Thanks for the issue. This has been resolved via #24603, and a fix will be available in an upcoming release of Ionic Framework. |
#24603) resolves #24446 Co-authored-by: Sean Perkins <[email protected]>
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
In Ionic 6, IonCol doesn't work in SSR in Blitz JS.
Expected Behavior
To work in SSR
Steps to Reproduce
Code Reproduction URL
https://github.com/SofianeDjellouli/blitz-ionic6-issue-reproduction
Ionic Info
Additional Information
It has nothing to do with it, but I had to use
next-transpile-modules
since Ionic 6 is using ES6 modules.The text was updated successfully, but these errors were encountered: