bug: Client-side error with formAssociated web component generated with @stencil/react-output-target in Next.js leads to: Uncaught RangeError: Maximum call stack size exceeded #6038
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
4.22.2
Current Behavior
Using a Stencil Web Component (the
formAssociated
flag set to true) wrapped by@stencil/react-output-target
within a form in a Next.js App, leads to an client-side errorUncaught RangeError: Maximum call stack size exceeded
Expected Behavior
The Stencil web component, generated as a React component via @stencil/react-output-target and used within an HTML form in a Next.js application, should function without errors. Specifically, setting formAssociated: true on the component should not result in any client-side errors, and no Uncaught RangeError: Maximum call stack size exceeded error should be thrown.
System Info
No response
Steps to Reproduce
npm ci
npm run build:web-components
npm run dev:app
Uncaught RangeError: Maximum call stack size exceeded
Code Reproduction URL
https://github.com/baumgm94/nextjs-stenciljs-example
Additional Information
No response
The text was updated successfully, but these errors were encountered: