I want to create a UI library using scss modules in NX workspace. I have a styling problem. I would like to have access to class names and their typing, however to get to a class I have to use square brackets. There is also no typing whatsoever, which is very annoying.
Currently, to get into a given class, I have to use such a syntax.
<div className={styles['container']}>
I would like it to work this way, and I would have a class hint.
<div className={styles.container}>
I will also add that when I created an application and not a lib, it works as expected. Has anyone had a similar problem?