You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
no response... I am disabling this plugin as broken.
tbh I am of the opinion that CSS modules + typescript + this plugin has more cons than pros anyway. Even with a fix I am finding that to generate a css.d.ts file requires an npm restart, and then for the ts compiler to pick it up requires a second restart.
As of version 1.7.0 and typescript 2.9.2 and contrary to the documentation, no default export is provided on the [styles].css.d.ts file
e.g. with a create-react-app new project
this seems to cause some problems with importing the styles into the component with e.g.
import locals from './App.css
restoring the export default by changing
to
in
typings-for-css-module-loader/lib/cssModuleToInterface.js
line 79 restores what I imagine to be the desired behaviour.Perhaps I am missing something?
The text was updated successfully, but these errors were encountered: