Replies: 1 comment
-
It looks like the error you're experiencing is a type resolution issue, possibly because you have That said, using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Emotion is a popular css-in-js library that is SSR ready and comes with lots of great features. https://github.com/emotion-js/emotion
EmotionJS is typescript ready so I think that should also be part of the integration.
I have attempted myself to make it work, but due to my very limited knowledge of Vite I have run into some problems.
Here is what we have done so far:
I am using the demo-store-ts starting template and trying to add @emotion/react to my project.
In my package.json I have:
as well as
"@emotion/babel-plugin": "^11.9.2",
in my devDependenciesI have added
"jsxImportSource": "@emotion/react"
, to mytsconfig
fileas well as I have added the correct plugins to vite.config
I am however facing an issue that i cant get my head around.
Beta Was this translation helpful? Give feedback.
All reactions