Theme issue in a Typescript Monorepo #3938
Unanswered
sleepyArpan
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Have you tried using a tsconfig file in each package? If you define the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I faced an issue with a typescript monorepo and theming using styled components, where if the project has a root tsconfig and we declare individual themes in each package, typescript expects all the themes to be exactly the same i.e. you cannot have multiple different themes in different packages. I have created a minimal reproduction using CRA and Yarn workspaces here. When you clone the repository and install all the dependencies locally and open the project in an editor, you would see that the theme from one app expects the keys from the theme of the other app. Is there any way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions