Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Last active March 22, 2019 11:45
Show Gist options
  • Save Kiwka/5867f54cc189494318c19ef59b322eb8 to your computer and use it in GitHub Desktop.
Save Kiwka/5867f54cc189494318c19ef59b322eb8 to your computer and use it in GitHub Desktop.
fix for flow error on html loading by adding declaration for raw-loader module
// place this one in the [options] section in your flowconfig
module.name_mapper='^raw-loader!\(.*\.html?\)' -> 'raw-loader'
// this file should be in flow-typed directory under root folder of your project
declare module 'raw-loader' {
declare module.exports: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment