[๐] Wrong children type of textarea
Closed this issue ยท 3 comments
GrandSchtroumpf commented
Which component is affected?
Qwik Runtime
Describe the bug
textarea tag support string as children (see mdn), but qwik throws this error :
'textarea' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of 'children' is 'undefined'.
Reproduction
https://stackblitz.com/edit/github-71g4ej?file=src%2Froutes%2Findex.tsx
Steps to reproduce
Add <textarea>Not Working</textarea>
to you template
System Info
System:
OS: Windows 11 10.0.22631
CPU: (32) x64 AMD Ryzen 9 7950X3D 16-Core Processor
Memory: 15.77 GB / 31.18 GB
Binaries:
Node: 22.8.0 - ~\.nvm\versions\node\v22.8.0\bin\node.EXE
npm: 10.8.2 - ~\.nvm\versions\node\v22.8.0\bin\npm.CMD
pnpm: 9.10.0 - ~\.nvm\versions\node\v22.8.0\bin\pnpm.CMD
Browsers:
Edge: Chromium (129.0.2792.65)
Internet Explorer: 11.0.22621.3527
npmPackages:
@builder.io/qwik: 1.9.1 => 1.8.0
@builder.io/qwik-city: 1.9.1 => 1.8.0
@builder.io/qwik-worker: ^0.0.1 => 0.0.1
typescript: 5.5.4 => 5.5.4
undici: 6.19.0 => 6.19.0
vite: 5.3.5 => 5.3.5
Additional Information
No response
JerryWu1234 commented
Does vscode throw an error ? or browser throw an error?
everything is fine in my local
JerryWu1234 commented
wmertens commented
@JerryWu1234 the error is from typescript, see the fix in the linked PR