Import CSS-Emotion problem

I’m trying to import an object with “global variables” (this object contains HEX colors) using Emotion specifically CSS-In-JS. And i can’t see why can’t be recognize the file.

Hello there,

You are importing from within GhostBtn.

./ - within the current file directory

Hope this helps

Sorry, i do not get it…

The error message says it…it is looking for the file color.js in the directory:
C:\Users\rucardo\Desktop\React Practice\src\components\GhostBtn\components\Theme

Do you have a directory like that?

1 Like

Ohhh. Just for a dot! Thanks a lot! This will not happen again.