I am working on a GatsbyJS application and currently facing an issue with integrating TypeScript. Although I have resolved most of the problems, I am unable to get the CSS modules to work properly.
In my file, I have this import statement that functions correctly:
import styles from "./card.module.css"
However, after adding the TypeScript configuration, it shows an error stating
Cannot find module './card.module.css'.ts(2307)
Despite trying different Gatsby plugins, none of them yielded the expected results.
You can find the complete code here: GitHub