Flow “Required module not found” when importing a CSS file

前端 未结 3 1277
一生所求
一生所求 2021-01-31 17:14

When I try to import CSS via webpack(import (./index.css)) I\'m getting this error:

3: import \'./index.css\';
          ^^^^^^^^^^^^^ ./index.css. Required modu         


        
3条回答
  •  旧时难觅i
    2021-01-31 17:46

    In order to not have to declare CSSModule for every project, I've published an npm package that does so:

    https://www.npmjs.com/package/css-module-flow

    https://github.com/ckknight/css-module-flow

提交回复
热议问题