(Created on )

Puppeteer: Unsupported vision deficiency: {value}

Vision-deficiency emulation receives an unsupported value.


Vision-deficiency emulation receives an unsupported value.

Error message

Unsupported vision deficiency: {value}

{value} is replaced by the value shown in your error message.

How this error happens

Vision-deficiency emulation accepts specific identifiers. colorblind is a description, not one of those identifiers.

The snippets use an open Puppeteer page named page.

await page.emulateVisionDeficiency(
    "colorblind"
);

How to fix

Choose the specific simulation you need, such as deuteranopia, or use none to reset it.

await page.emulateVisionDeficiency(
    "deuteranopia"
);

Things to keep in mind

This is a rendering simulation, not a replacement for accessibility testing. The selected browser must support the emulation feature.

All Puppeteer errors

Keep Reading

Puppeteer Guides

All Guides →