bug: Message Failed to serialize light DOM
logged when resolving components
#561
Labels
Failed to serialize light DOM
logged when resolving components
#561
Prerequisites
Stencil Version
4.22.3
Stencil Framework Output Target
React
Stencil Framework Output Target Version
0.7.4
Current Behavior
The SSR component resolver does not properly handle all components and produces the following error in the logs:
Expected Behavior
All components and their child components should be resolved correctly during SSR, ensuring that no error messages are logged. The serialization process should handle all component types properly to support seamless hydration.
Steps to Reproduce
Check out the
stencil-ds-output-targets
run:Open the app on
http://localhost:3000
and look into your terminal.Code Reproduction URL
https://github.com/ionic-team/stencil-ds-output-targets
Additional Information
I submitted two PRs that address the problem:
1. Quick Fix: Provides a temporary solution but does not guarantee prevention of future issues. (#563)
2. Extended Logic: Adds more comprehensive logic to handle all possible
ReactNode
types. However, since I am not entirely familiar with React’s internals, I cannot guarantee its correctness. (#562)Feel free to review the PRs, suggest improvements, or close either of them as you see fit.
The text was updated successfully, but these errors were encountered: