how to install flow on gatsbyjs 1

how to install flow on gatsbyjs

yarn add gatsby-plugin-flow

Open gatsby-config.js file and Insert the following code

modules.exports = {
    plugins: [
        // your other plugins
        `gatsby-config.js`, // highlight-line
        // your other plugins
    ],
}

yarn add -D flow-bin

You can initialize Flow by running the command
npx flow init

Check your code
npx flow

Here is what the above code is Doing:
1. We’re installing the gatsby-plugin-flow plugin.
2. We’re adding the plugin to our gatsby-config.js file.
3. We’re installing the flow-bin package.
4. We’re initializing Flow.
5. We’re checking our code.

Similar Posts