Create React App 2通过以下导入语句更新为支持 css module:
import styles from "./myStyles.module.scss";
然而,flow抱怨说的是:
Importing from an untyped module makes it any and is not safe!
Did you mean to add // @flow to the top of ./myStyles.module.scss? (untyped-import)
这是[options]我的.flowconfig文件中的样子:
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.scss
我还尝试添加以下行:
module.file_ext=.module.scss