Обновлено до Create React App 2
, которое поддерживает модули css с помощью следующего оператора импорта:
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