You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.25.3
Current Behavior
There are certain conditions that can cause the values array for a component prop to be generated incorrectly, i.e. not expanding types and a mangled string split of values.
For example, I am getting an array of values like this:
Prerequisites
Stencil Version
4.25.3
Current Behavior
There are certain conditions that can cause the
values
array for a component prop to be generated incorrectly, i.e. not expanding types and a mangled string split of values.For example, I am getting an array of
values
like this:"type": "AllowedColors<\"Lavender-100\""
and"type": "\"Rose-600\">"
are obviously not intended, andColorName
is not expanded.Expected Behavior
I would expect the underlying values for the type to be expanded, i.e.
System Info
Steps to Reproduce
Check the reproduction repo I linked.
npm install
npm run build
docs.json
file. Notice the incorrectvalues
array for thecolor
prop.Play around uncommenting the other variations of types that do not result in the same behavior (you'll need to re-run a build each time)
Code Reproduction URL
https://github.com/brandongregoryscott/stencil-generic-prop-values-issue
Additional Information
No response
The text was updated successfully, but these errors were encountered: