[studio] Unable to load styled-components styles in canvas #3643
Labels
scope: toolpad-studio
Abbreviated to "studio"
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: (required)
Steps:
toolpadComponents.tsx
,ComponentCatalogItem
andtoolpad-studio-components/src
(usingcreateBuiltin
).Current behavior
The custom component is displayed with no styles in the canvas.
Expected behavior
I would expect the custom component to be displayed in the canvas with the proper styles.
Context
This happens after the change that made EXPERIMENTAL_INLINE_CANVAS be the default behavior. I am not entirely sure what it changes. #3370. In previous versions it loaded as expected.
I wonder if there is any known workaround to make custom components that use styled-components to load their styles as expected.
Your environment
npx @mui/envinfo
Search keywords: styled-components canvas
The text was updated successfully, but these errors were encountered: