[bug]: "Cannot read properties of undefined (reading 'Root')" on Modal component #1777
Labels
issue: bug
Issue reporting a bug
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
What version of design-system are you using?
^1.19.0
What's Wrong?
When I try to add a Modal component, entire UI will crash in white with the error on the title. Is not recognizing the <Modal.Root>. I'm using this component inside a custom field plugin on Strapi's CMS.
I was also wondering where to add the
<DesignSystemProvider>
provider in this case since from the plugin perspective, it just loads a component. Should I just wrap the component in this provider either way? I tried but keeps happening the same issue.This is my current code that I was testing as an example:
This is my dependency list
To Reproduce
Add a markdown for a
<Modal.Root>
Expected Behaviour
It should render without any issues.
The text was updated successfully, but these errors were encountered: