Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Next.js and React

Chrome DevTools asks for a screenshot with form_factor set to wide

Your error

Richer PWA install UI won’t be available on desktop. Add at least one screenshot with the `form_factor` set to `wide`.1 more line it can show

Fix it fast

Most common cause, 1 of 3

No screenshot carries form_factor wide

Add a landscape capture of the app with form_factor wide, and keep a narrow or unlabelled one so the mobile warning does not appear instead.

Fix
"screenshots": [
  {
    "src": "/screenshots/desktop-home.png",
    "sizes": "1280x720",
    "type": "image/png",
    "form_factor": "wide",
    "label": "Dashboard on a desktop screen"
  },
  {
    "src": "/screenshots/mobile-home.png",
    "sizes": "750x1334",
    "type": "image/png",
    "form_factor": "narrow",
    "label": "Dashboard on a mobile screen"
  }
]
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

Chrome DevTools warns that richer PWA install UI won't be available on desktop when no screenshots entry in the served manifest has form_factor exactly wide. Add a wide screenshot whose sizes match the real image, edit the manifest that is really served (vite-plugin-pwa writes its own), and keep each side within 320 to 3840 pixels. Applies to Chrome 159.

  • Applies to Chrome 159 DevTools (Application > Manifest), vite-plugin-pwa 2.0, Web App Manifest screenshots member
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Open DevTools > Application > Manifest and note the manifest URL it shows. Then fetch that URL and print the screenshots array exactly as the browser receives it.

Run this first
curl -s https://example.com/manifest.webmanifest | python3 -m json.tool | grep -n -A6 '"screenshots"'

Then find the line you see in this list and open its fix:

  1. 1No screenshot carries form_factor wideThe served screenshots array is missing, holds only tall mobile captures, or spells the value differently, such as Wide, desktop or landscape
  2. 2vite-plugin-pwa serves a generated manifest, not the file you editedThe manifest URL in DevTools ends in manifest.webmanifest from the build, and your screenshots only exist in public/manifest.json
  3. 3The wide image is there, but DevTools rejects or ignores itThe warning is gone, yet the Manifest pane lists an error such as size should be at least 320×320, Actual size doesn't match specified size, or same aspect ratio

What does the error look like?

  • Richer PWA install UI won’t be available on desktop. Add at least one screenshot with the `form_factor` set to `wide`.
  • Richer PWA install UI won’t be available on mobile. Add at least one screenshot for which `form_factor` isn’t set or set to a value other than `wide`.

Cause 1 of 3

No screenshot carries form_factor wide

You seeThe served screenshots array is missing, holds only tall mobile captures, or spells the value differently, such as Wide, desktop or landscape

Check

DevTools counts desktop screenshots by comparing form_factor with the lowercase string wide and nothing else; with zero matches the desktop warning appears. Chrome's own announcement says the richer dialog needs at least one screenshot for the matching form factor. MDN calls a screenshot without form_factor suitable for all screens, but the DevTools desktop check still skips it.

Check
curl -s https://example.com/manifest.webmanifest | grep -n 'form_factor'

Fix

Add a landscape capture of the app with form_factor wide, and keep a narrow or unlabelled one so the mobile warning does not appear instead.

Fix
"screenshots": [
  {
    "src": "/screenshots/desktop-home.png",
    "sizes": "1280x720",
    "type": "image/png",
    "form_factor": "wide",
    "label": "Dashboard on a desktop screen"
  },
  {
    "src": "/screenshots/mobile-home.png",
    "sizes": "750x1334",
    "type": "image/png",
    "form_factor": "narrow",
    "label": "Dashboard on a mobile screen"
  }
]

Verify

Reload the Manifest pane. Both richer install warnings are gone and the Screenshot rows show the images.

Verify
curl -s https://example.com/manifest.webmanifest | grep -c '"wide"'

Confirmed by raw.githubusercontent.com

Did this fix it?

Cause 2 of 3

vite-plugin-pwa serves a generated manifest, not the file you edited

You seeThe manifest URL in DevTools ends in manifest.webmanifest from the build, and your screenshots only exist in public/manifest.json

Check

With vite-plugin-pwa, the Web App Manifest is produced from the manifest option in the Vite config at build time. Its docs say to set manifest to false when you want to ship your own manifest file from public, so a hand-edited public/manifest.json is a different file from the one the plugin writes.

Check
grep -n -A12 'VitePWA(' vite.config.*

Fix

Move the screenshots into the plugin's manifest option, or set manifest to false and link your own file. Then run a fresh build so the new manifest is written.

Fix
VitePWA({
  manifest: {
    name: 'My App',
    screenshots: [
      { src: '/screenshots/desktop-home.png', sizes: '1280x720', type: 'image/png', form_factor: 'wide' },
      { src: '/screenshots/mobile-home.png', sizes: '750x1334', type: 'image/png', form_factor: 'narrow' }
    ]
  }
})

Verify

After a fresh build, the generated manifest contains the wide entry and DevTools shows it.

Verify
npm run build && grep -c 'wide' dist/manifest.webmanifest

Confirmed by vite-pwa-org.netlify.app

Did this fix it?

Cause 3 of 3

The wide image is there, but DevTools rejects or ignores it

You seeThe warning is gone, yet the Manifest pane lists an error such as size should be at least 320×320, Actual size doesn't match specified size, or same aspect ratio

Check

DevTools checks each screenshot against its declared sizes and flags images under 320 or over 3840 pixels on a side, or with one side more than 2.3 times the other. When screenshots sharing a form_factor have different shapes, it warns that some of them will be ignored.

Check
file screenshots/desktop-home.png

Fix

Export each capture at exactly the pixel size written in sizes, inside those limits, and give all wide screenshots the same aspect ratio as the first wide one.

Fix
{ "src": "/screenshots/desktop-reports.png", "sizes": "1280x720", "type": "image/png", "form_factor": "wide" }

Verify

The Manifest pane shows no image errors for the screenshots after a hard reload.

Verify
file screenshots/*.png

Confirmed by raw.githubusercontent.com

Did this fix it?

How do I stop it coming back?

  • Store the screenshots next to the manifest with their pixel size in the file name, so a resized export is noticed in review.
  • Add a CI step that parses the built manifest and fails when no entry has form_factor wide.
  • With a PWA build plugin, keep the manifest in one place only: the plugin config or your own file, never both.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.