Simply put, I'm looking for a way to utilize intellisense when importing a CSS file that includes one of the aliases specified in my tsconfig.json under compilerOptions.paths
. Does anyone have any insight on how to make this happen?
For instance,
import * as styles from '@mystyles/somestyle.module.css'
As I type @mystyles
, it should suggest somestyle.module.css
in the autocomplete menu. However, this is not currently occurring.
Here's a snippet from the tsconfig.json:
{
"compilerOptions": {
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@mystyles/*": [ "src/reactApp/styles/*" ],
},
},
"include": [
"src/**/*",
"public/**/*"
],
}