-
Hi, this is the first time I am using theme-ui and I have done a proof of concept which consists of:
I install the library I uploaded to npm packages into the nextjs app project. If I try to customize the "theme-ui" components from the next js app they are not applied and are greyed out. I can only customize the components in the next js app if I use theme-ui components directly and not my own, even though they are wrappers of theme-ui components. Can you think what could be happening? Works:
Not Works:
my bundelize component in node_modules package:
thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I'd guess you have multiple versions of Emotion installed and there's a context mismatch. Could you upload your lockfile here? |
Beta Was this translation helpful? Give feedback.
-
Okay, it doesn't look like the thing I expected. Could you provide a reproduction repo? (Is your components library open source?) |
Beta Was this translation helpful? Give feedback.
-
Take a look in your bundle. It includes a big piece of Emotion and |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! it's already fixed :D @hasparus have a nice week and see you soon! |
Beta Was this translation helpful? Give feedback.
Take a look in your bundle. It includes a big piece of Emotion and
@theme-ui/css
. If I were you, I'd look into the rollup externals config, because I'm fairly sure you didn't intend to bundle your transitive dependencies.