Last active
March 22, 2019 11:45
-
-
Save Kiwka/8730edca0964fb65efb78d131e5edc5a to your computer and use it in GitHub Desktop.
fix for flow error on html loading by adding mimic typing of expected output of raw-loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// place this one in the [options] section in your flowconfig | |
module.name_mapper='^raw-loader!\(.*\.html?\)' -> '<PROJECT_ROOT>/flow-typed/raw-loader.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I have placed this in flow-typed directory under root directory of my project | |
// but this solution does not work | |
// @flow | |
const s: string = ""; | |
export default s; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment