Skip to content

Static build does not render stencil components #27033

Answered by jarrodthibodeau
SamCour asked this question in Help
Discussion options

You must be logged in to vote

@SamCour you ever find a resolution to this?

We are now running into this same problem... If you don't care about your bundle size, the fix you can implement can be found in the StencilJS documentation here. https://stenciljs.com/docs/config-extras#enableimportinjection

That will resolve the issues but adds all your components as separate entry files. We used to have it working because we had this flag on due to using Vite but were told to turn it off to reduce the bundle size so we are now dealing with this as a side effect of that decision.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SamCour
Comment options

@jarrodthibodeau
Comment options

Answer selected by SamCour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants