question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

manifest does not contain a suitable icon

See original GitHub issue

Provide the steps to reproduce

  1. Run LH on https://tietracker.com

What is the current behavior?

Lighthouse displays following error regarding the manifest:

Manifest does not contain a suitable icon - PNG, SVG or WebP format of at least 144 px is required, the sizes attribute must be set, and the purpose attribute, if set, must include “any” or “maskable”.

No supplied icon is at least 144 px square in PNG, SVG or WebP format

Manifest which looks like following and does seem to match expected above description:

{
  "name": "Tie Tracker",
  "short_name": "Tie Tracker",
  "icons": [
    {
      "purpose": "maskable",
      "src": "/assets/favicon/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "purpose": "maskable",
      "src": "/assets/favicon/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "start_url": "/",
  "display": "standalone",
  "theme_color": "#230f29",
  "background_color": "#ffffff"
}

What is the expected behavior?

Either it is an error and the icons of the manifest should be recognized as valid or, the description should be improved to display what’s missing.

Environment Information

  • Chrome version: v91

Screenshot

Capture d’écran 2021-06-19 à 14 21 24

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
phoglenixcommented, Jul 16, 2021

The issue (see chromium bug linked above) is now fixed at head. It should appear in Chrome 93. I split the message into two separate warnings (one for “you only have maskable icons”, one for “avoid having any maskable icons”)

1reaction
adamrainecommented, Jun 25, 2021

So setting the pattern of "any maskable" is discouraged but not required. Unfortunatley, the difference between “must not” and “should not” is a bit subtle in the applications panel message.

The Lighthouse message is now correct, but we removed the part discouraging "any maskable" https://github.com/GoogleChrome/lighthouse/pull/12678#discussion_r655596372.

gelnrob@ is open to changing the message, so we can reevaluate what we want to include if that happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PWA "Manifest does not contain a suitable icon" - Stack Overflow
I'm building a progressive web app. Chrome says it has icon problems: "Manifest does not include a suitable icon" and "No supplied icon...
Read more >
Manifest does not contain a suitable icon - WordPress.org
Here is the error that I get: `“Manifest does not contain a suitable icon – PNG, SVG, or WebP format of at least...
Read more >
Manifest doesn't have a maskable icon - Chrome Developers
The icons array must contain one object with a purpose property, and the value of that purpose property must include maskable . Caution....
Read more >
Manifest does not contain a suitable icon - Ionic Forum
Manifest does not contain a suitable icon - PNG, SVG or WebP format of at least 144 px is required, the sizes attribute...
Read more >
Pwa "Manifest Does Not Contain A Suitable Icon" - ADocLib
A typical manifest file includes the app name the icons the app flag about://flags/#mobilepwainstallusebottomsheet flag must be. Exception or Error. Manifest ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found