We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog.Panel
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
latest
Describe your issue
There is a type error with Dialog.Panel in the latest version. VS Code can't find the type of Panel
Panel
error TS2339: Property 'Panel' does not exist on type '(<TTag extends ElementType<any> = "div">(props: Props<TTag, DialogRenderPropArg, DialogPropsWeControl> & (({ static?: undefined; } & { ...; }) | ({ ...; } & { ...; })) & { ...; }, ref: Ref<...>) => Element) & { ...; } & { ...; }'. 75 </Dialog.Panel>
The text was updated successfully, but these errors were encountered:
Hey! Thank you for your bug report! Much appreciated! 🙏
Here is a list of things to try:
npm install @headlessui/react@latest
Here is a very basic CodeSandbox with React, TypeScript and Headless UI proving that Dialog.Panel does exist. https://codesandbox.io/s/laughing-edison-182d99?file=/src/App.tsx
Sorry, something went wrong.
I'm facing this problem when i install using npm install @headlessui/react@insiders
npm install @headlessui/react@insiders
P.S. I have NodeNext as module resolution
NodeNext
No branches or pull requests
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
latest
Describe your issue
There is a type error with
Dialog.Panel
in the latest version. VS Code can't find the type ofPanel
The text was updated successfully, but these errors were encountered: