Web Development

Error: Cannot find module ‘puppeteer/DeviceDescriptors’

This top level file has been removed from the Puppeteer package from puppeteer v5.0.0. . The same data is exposed via puppeteer.devices

Use this if you are using version 5 or above

const puppeteer = require('puppeteer');
const devices = puppeteer.devices;

Computer engineer interested in programming, electronics, application architecture, data visualization, automation and performance optimization.

2 Comments

Leave a Reply