DEV Community

Discussion on: Freak out! Showcasing Chic Modules 1.0 ✨ A Styled-like CSS-Modules API

Collapse
 
byme8 profile image
Stanislav Silin

What happens if you type the wrong class name? I tested the sandbox that you provided, and it looks like it just silently fails, which is not a great idea. There are a lot of modern frameworks that can fail on compilation time. So, in this case, it is not clear what benefits your library provides.

Collapse
 
eels profile image
Liam Howell

That's a great catch! As you noticed it currently just fails silently, but still returns the underlying html element and additional props. Definitely an oversight on my part and should be flagged during compilation to let the developer know. I'll add it to my bug tracker. Thanks for the input!