Error: DialogPortal
must be used within Dialog
#135596
Replies: 1 comment 2 replies
-
Is it ShadCn dialog??m if it is example <Dialog>
<DialogTrigger asChild>
<Button variant="outline">Trigger dialog</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>Some Title</DialogTitle>
<DialogDescription>
Some Des
</DialogDescription>
</DialogHeader>
<div>
your content
</div>
<DialogFooter>
<Button type="submit">Save changes</Button>
</DialogFooter>
</DialogContent>
</Dialog> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a barbershop website using Next.JS, NextAuth and other tools. The problem is when I was making the Header component, this error appears. I'm new to projects that use NextJs, if anyone could help I would be very grateful.
Repo: https://github.com/devpedro-dias/devbarber
![error-nextjs](https://private-user-images.githubusercontent.com/151687348/357247873-4005033d-f91e-4014-84a7-1efb8ee7ff3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzkyMDMsIm5iZiI6MTczODk3ODkwMywicGF0aCI6Ii8xNTE2ODczNDgvMzU3MjQ3ODczLTQwMDUwMzNkLWY5MWUtNDAxNC04NGE3LTFlZmI4ZWU3ZmYzYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwMTQxNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MjM2NTIyZTNiMjAwMDg3YTIyNzlkZWIzYmNjYzA2MWU2MTgxMDFhZGQ0OGRlZTZmYTE5NTQ0MWNjODc5NTcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.TVtElhVYU287TKRUYswDcbFzUfFPlQ-UKF3oFMLJAJ8)
Error image:
Beta Was this translation helpful? Give feedback.
All reactions