Describe the bug In my React Typescript project, I am trying to use CSS modules. I created the project using create-react-app, added TypeScript later. Then I followed the instructions from the docs to setup CSS modules in the project
- Added the plugin with
npm install -D typescript-plugin-css-modules
- Then updated tsconfig.json
{
"compilerOptions": {
"plugins": [{ "name": "typescript-plugin-css-modules" }]
}
}
- I tried to run it but it didn't run. It complained about import statement here. Though the plugin docs say it shouldn't
- So I added global.d.ts, which resolved the error
- Now when I run it, the Home link on the header should be white. But I see the default color
To Reproduce
- Go to https://codesandbox.io/s/summer-haze-ztnf6?file=/src/index.tsx
- See the Link Home
Expected behavior Home link color should be white