Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Last active March 22, 2019 11:45
Show Gist options
  • Save Kiwka/8730edca0964fb65efb78d131e5edc5a to your computer and use it in GitHub Desktop.
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
// place this one in the [options] section in your flowconfig
module.name_mapper='^raw-loader!\(.*\.html?\)' -> '<PROJECT_ROOT>/flow-typed/raw-loader.js'
// 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