skovy / typed-scss-modules

🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
https://skovy.dev/generating-typescript-definitions-for-css-modules-using-sass/
MIT License
638 stars 67 forks source link

node-sass 9.0.0 #214

Closed panaC closed 10 months ago

danielweck commented 1 year ago

Temporary fix: using https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides

package.json:

{
  "overrides": {
    "typed-scss-modules": {
      "node-sass": "$node-sass"
    }
  }
}

(note that $node-sass can be replaced with the actual version number, this just picks it up from the current package.json)

Note: another option would have been NPM --force or --legacy-peer-deps but both are quite "aggressive" and potentially introduce unwanted consequences.

Note: another option would have been https://www.npmjs.com/package/npm-force-resolutions or https://www.npmjs.com/package/force-resolutions but these not-so-well-maintained packages introduce a NPM preinstall script which may pose security issues in the future (IMO).