docusaurus-plugin-sass icon indicating copy to clipboard operation
docusaurus-plugin-sass copied to clipboard

README.md setup instructions

Open TimKrauseDev opened this issue 11 months ago • 0 comments

Issue

I followed the README instructions to set up SCSS in my Docusaurus 3 repo.

When updating the module style name from styles.module.css to styles.module.scss, the import statements inside of the index.tsx files throw a false error (the styles still work) of Cannot find module './styles.module.scss' or its corresponding type declarations.

Proposed Solution

Add instructions to the README to include setting up the type declarations file: typings.d.ts

declare module "*.module.scss"

TimKrauseDev avatar Mar 26 '24 16:03 TimKrauseDev