bug: NextJS 15 TypeError in Development for client or server side rendered components #6166
Open
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.26.0
Current Behavior
Hi Ionic/Stencil Team
I'm working on a design system using StencilJS and Next.js 15 with App Router.
When I run Next.js in development mode (npm run dev) and open the page in the browser—especially when opening it a second time—I see a TypeError logged in the console. What could be causing this? Both the client-side rendering and SSR itself seem to be working fine.
Any insights or potential fixes would be greatly appreciated! Thanks in advance.
Expected Behavior
The pages loaded without an error.
System Info
Steps to Reproduce
git clone https://github.com/artursopelnik/stenciljsnextjs15-ssr
1
Install all packages on root folder with `npm install``
2
Build projects in package with:
npm run build
npm run build
npm run build
3
Start NextJS
cd ./packages/nextjs15
npm run dev
Code Reproduction URL
https://github.com/artursopelnik/stenciljsnextjs15-ssr
Additional Information
Codesandbox:
https://codesandbox.io/p/github/artursopelnik/stenciljsnextjs15-ssr/main?import=true
The text was updated successfully, but these errors were encountered: