-
-
Notifications
You must be signed in to change notification settings - Fork 835
bug: globalStyles not prepended to SSR rendered components #6639
Copy link
Copy link
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.43.2
Current Behavior
The global stylesheet does not get appended to the adoptedStyleSheets property of components during SSR.
Expected Behavior
Adopted stylesheets include the global styles for SSR components.
System Info
System: node 22.14.0
Platform: darwin (25.3.0)
CPU Model: Apple M4 Pro (12 cpus)
Compiler: /Users/*****/Sanity/*****/node_modules/.pnpm/@stencil+core@4.43.2/node_modules/@stencil/core/compiler/stencil.js
Build: 1772184285
Stencil: 4.43.2 🌙
TypeScript: 5.8.3
Rollup: 4.44.0
Parse5: 7.2.1
jQuery: 4.0.0-pre
Terser: 5.37.0Steps to Reproduce
Create stencil package with global styles
Create stencil component
Output hydrate package & react package
Install next
Add SSR version of stencil component to page
Observe to global styles not being in the adopted stylesheets list
Code Reproduction URL
N/A
Additional Information
I intend to submit a PR to fix this. The fix does not appear to be specific to this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil