css-modules-ts-plugin This plugin aims to provide a basic LSP support for CSS modules that should be compatible with TypeScript 5 and composite projects. npm install --save-dev css-modules-ts-plugin Add this to your tsconfig.json: { "compilerOptions": { // ... other compiler options ... "rootDir": "./", // make sure rootDir is set! "plugins": [{ "name": "css-modules-ts-plugin" }] } } Reload your LSP
{ "compilerOptions": { // ... other compiler options ... "rootDir": "./", // make sure rootDir is set! "plugins": [{ "name": "css-modules-ts-plugin" }] } }