Creatiwity / gatsby-plugin-favicon

UNMAINTAINED - Favicon Gatsby plugin
MIT License
166 stars 27 forks source link

WebpackError: Cannot read property 'android' of undefined #44

Closed perteraul closed 6 years ago

perteraul commented 6 years ago

Just tried to build the via Netlify without any options and this was the outcome of that.

v2.1.1

hamstercat commented 6 years ago

I had the same problem, turns out there was no default options in v2.2.1. I used the README.md from here https://github.com/Creatiwity/gatsby-plugin-favicon/tree/v2.1.1 and had to add options to my plugin in gatsby-config.js.

{
  resolve: 'gatsby-plugin-favicon',
  options: {
    logo: './src/favicon.png',
    injectHTML: true,
    icons: {
      android: true,
      appleIcon: true,
      appleStartup: true,
      coast: false,
      favicons: true,
      firefox: true,
      twitter: false,
      yandex: false,
      windows: false
    }
  }
}
babzcraig commented 6 years ago

Thanks for this!

julien1619 commented 6 years ago

Indeed there wasn't a working default configuration in 2.1.1. Please see https://github.com/Creatiwity/gatsby-plugin-favicon/tree/v2.1.1