Skip to content

Created app has wrong favicon "sizes" value in the manifest file, which results in console error. #3284

Closed
@mohsinulhaq

Description

@mohsinulhaq

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Did not try. Doesn't seem to be related to that.

Which terms did you search for in User Guide?

I didn't.

Environment

  1. node -v: v8.7.0
  2. npm -v: 5.5.1
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected):

Then, specify:

  1. Operating system: macOS 10.13
  2. Browser and version (if relevant): Chrome 61

Steps to Reproduce

  1. Go to the created app's manifest file in public folder.
  2. The icons array has wrongly mentioned the favicon.ico size as 192x192 instead of 16x16 size of the included favicon file.
  3. Run the app. Go to Dev Tools' Application section. Open Manifest.
  4. Click Add to homescreen. This results in console error:
    Error while trying to use the following icon from the Manifest: http://localhost:3000/favicon.ico (Resource size is not correct - typo in the Manifest?) Site cannot be installed: icon downloaded from the manifest was empty or corrupted

Expected Behavior

Should have searched for 144x144 image, where it would fail if we fix the size now.

Actual Behavior

Console error.

Reproducible Demo

screen shot 2017-10-15 at 9 05 51 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions