Created app has wrong favicon "sizes" value in the manifest file, which results in console error.
Created by: 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
-
node -v
: v8.7.0 -
npm -v
: 5.5.1 -
yarn --version
(if you use Yarn): -
npm ls react-scripts
(if you haven’t ejected):
Then, specify:
- Operating system:
macOS 10.13
- Browser and version (if relevant):
Chrome 61
Steps to Reproduce
- Go to the created app's manifest file in public folder.
- The icons array has wrongly mentioned the favicon.ico size as 192x192 instead of 16x16 size of the included favicon file.
- Run the app. Go to Dev Tools' Application section. Open Manifest.
- 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.