Skip to content

Instantly share code, notes, and snippets.

@EddiG
Last active November 20, 2018 07:51
Show Gist options
  • Save EddiG/39d7b5c8eece1af7b785345ab9d77854 to your computer and use it in GitHub Desktop.
Save EddiG/39d7b5c8eece1af7b785345ab9d77854 to your computer and use it in GitHub Desktop.

If the package in the node_modules directory causing the type errors when the flow doing its job

  • Add <PROJECT_ROOT>/node_modules/BADASS_PACKAGE/*. in [ignore] section of .flowconfig
  • Perform flow-typed create-stub BADASS_PACKAGE

If you don't have a flow-typed

  • Install it yarn global add flow-typed
  • [OPTIONALY] Install definitions for packages flow-typed install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment