From 69e87a7c2aa7374702f4e6af9e95e4bdca415f3a Mon Sep 17 00:00:00 2001 From: Liang Gong Date: Tue, 20 Aug 2024 15:20:05 -0700 Subject: [PATCH] fix(core): fix device lookup after puppeteer upgrade (#126) (#125) Summary: Fix an issue reported from OSS usage: https://github.com/facebook/memlab/issues/126 Closes #125 Reviewed By: twobassdrum Differential Revision: D61502413 fbshipit-source-id: bbb7732d446c6d94d9440bc00929d76313ba8808 --- packages/core/src/lib/Config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/lib/Config.ts b/packages/core/src/lib/Config.ts index 7569f5a3..97a58a81 100644 --- a/packages/core/src/lib/Config.ts +++ b/packages/core/src/lib/Config.ts @@ -54,7 +54,7 @@ const devices = constant.isFRL : constant.isFB ? require('puppeteer-core/DeviceDescriptors') : // eslint-disable-next-line @typescript-eslint/no-var-requires - require('puppeteer').devices; + require('puppeteer').KnownDevices; // default viewport config for desktop const windowWidth = 1680;