I have a Typescript-using codebase that imports CSS files using React CSS modules. I have tons of these CSS imports throughout my code, and none get any errors … except every once in awhile one does:
What’s so strange is that the file does exist, and the path for it (./IntegrationAssetCard.module.css
) is about as simple as it gets. I can even CMD + Click
on the import, and (despite having a red squiggly underline) VS Code will take me to the file!
It seems like this is a Typescript error, but I’ve tried restarting my Typescript server (inside VS Code), and that hasn’t helped. Can anyone suggest why VS Code would think one specific CSS file isn’t there when it it is … or suggest how I can debug things to figure it out why?