You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The snippet above produces a console error stating that the component ...references the 'theme' prop in its styles but no theme was provided via prop or <ThemeProvider>. I assume this is because at run-time dynamic styles are compiled to something along the lines of:
Package Versions:
I have just started a new project using
babel-plugin-tailwind-components
, and trying to use prop variables for dynamic component styling:The snippet above produces a console error stating that the component
...references the 'theme' prop in its styles but no theme was provided via prop or <ThemeProvider>.
I assume this is because at run-time dynamic styles are compiled to something along the lines of:Static styles such as
flex
ortext-center
don't cause this error to be returned, since they aren't dependent on custom configurations.Is there any way to avoid this error being produced?
The text was updated successfully, but these errors were encountered: