DEV Community

Discussion on: Configure Emotion with your Vite React Project

Collapse
 
rossthedevigner profile image
rossthedevigner

@vfonic I just spent the last few hours trying to debug this exact scenario! Did you ever find a solution?

Collapse
 
elvezpablo profile image
Paul

I ran across this issue and found that it was caused by Vite doing some extra code injection (github.com/vitejs/vite/issues/9829). It happened when I was trying to bundle emotion as a module. I ended up removing emotion from the module and using it as a dependency at the root of my project.