Typescript error with <Listbox>.
See original GitHub issueWhat package within Headless UI are you using?
What version of that package are you using?
v0.3.2
What browser are you using?
Chrome
Issue
The following error shows up with @headlessui/react with Typescript v4.1.3 in a Next.js (v10) app that is also using Emotion. I found a similar issue #233 but neither of the solutions proposed worked for me. I’ll update this if I find a work around.
Expression produces a union type that is too complex to represent.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Typescript Error for a a function that takes multiple List Types
Now I have a simple function to group the customFunctions and fieldDefinitions based on their returType/valueType. First I've written separate ...
Read more >listbox-with-typescript - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >@reach/listbox - npm
Start using @reach/listbox in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >Drag and drop in TypeScript ListBox - Syncfusion
A list item can be moved from a widget to another ListBox widget. Also the order of list items can be changed. This...
Read more >(Deprecated) Collapsible Dropdown Listbox Example - W3C
In its default state, the widget is collapsed (the listbox is not visible) and the button label shows the currently selected option from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok so removing this line from tsconfig.json fixed it for me:
The other issue #233 mentioned this but I needed to restart VS Code after removing that line.
Unfortunately, even after removing this, I see this this error. Any other tips?