NicolappsN
Convex Community3y ago
4 replies
Nicolapps

“Class extends value undefined is not a constructor or null” (Node actions + Puppeteer)

Hi everyone! I’m trying to use Puppeteer in a Node action. I have some simple code that works locally but fails when deployed on Convex:

'use node';

import puppeteer from 'puppeteer';

(async () => {
  const browser = await puppeteer.launch({
    headless: 'new',
  });

  await browser.close();
})();


400 Bad Request: UnableToPush: Hit an error while pushing:
Loading the pushed modules encountered the following
    error:
Failed to analyze _deps/node/6Q45XLTZ.js: Class extends value undefined is not a constructor or null
Was this page helpful?