dead-brownD
Apify & Crawlee12mo ago
4 replies
dead-brown

Cannot detect CDP client for Puppeteer

Hi,

How to fix this?

Failed to compile
./node_modules/.pnpm/@crawlee+puppeteer@3.13.0_playwright@1.50.1/node_modules/@crawlee/puppeteer/internals/utils/puppeteer_utils.js:224:22

Module not found: Can't resolve 'puppeteer/package.json'
  222 |         return client.send(command, ...args);
  223 |     }
> 224 |     const jsonPath = require.resolve('puppeteer/package.json');
      |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  225 |     const parsed = JSON.parse(await (0, promises_1.readFile)(jsonPath, 'utf-8'));
  226 |     throw new Error(
Cannot detect CDP client for Puppeteer ${parsed.version}. You should report this to Crawlee, mentioning the puppeteer version you are using.
);
  227 | }

https://nextjs.org/docs/messages/module-not-found
Was this page helpful?