Open guilhermebc opened 2 weeks ago
Thanks for the issue!
This project is currently maintained for the purposes of supporting Ionic Framework. At this time, only new issues & pull requests that support Ionic Framework will be prioritized. For the latest updates regarding the maintenance status of this project, please see this section of the project's README
up
Prerequisites
Stencil Version
4.21.0
Stencil Framework Output Target
React
Stencil Framework Output Target Version
0.7.1
Current Behavior
I work at a company where we use Stencil for the internal design system and export it to React, as we have projects in Next.js (^14.2.3).
We use version ^0.5.3 of the @stencil/react-output-target package for using the components in Next.js projects and were waiting for the launch of SSR support.
As soon as the SSR components support was released for react-output-target, I went to test updating it in the company's design system, but I am not able to compile the application, I followed all the steps in the Stencil documentation.
Our design system is published in a private repository manager, and we install it in the company's applications (Vue apps, Next.js apps, etc).
Expected Behavior
Setup Next.js app router + SSR + Stencil react output target components.server building and working
Steps to Reproduce
Design system repo: https://github.com/guilhermebc/gbc-design-system Nextjs app + design system repo: https://github.com/guilhermebc/nextjs-with-stencil-ssr
The version
@guilhermebc/gbc-design-system-nextjs@1.0.8
is causing the error.I ended up discovering that the cause of the error is coming from the extra settings we need to apply for slot correction: stencil.config.ts
I generated a version @guilhermebc/gbc-design-system-nextjs@1.0.9 removing these extra settings and the error does not occur, but in any case, we need these settings applied in our internal design system.
To reproduce, just download the repository https://github.com/guilhermebc/nextjs-with-stencil-ssr: 1 - Install the dependencies yarn install 2 - Run build with yarn build
PS: To simulate without the error, just install the version
@guilhermebc/gbc-design-system-nextjs@1.0.9
Code Reproduction URL
https://github.com/guilhermebc/nextjs-with-stencil-ssr
Additional Information