Cannot detect CDP client for Puppeteer
Hi,
How to fix this?
Failed to compile
./node_modules/.pnpm/@[email protected][email protected]/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
3 Replies
Someone will reply to you shortly. In the meantime, this might help:
typical-coralOP•2mo ago
In addition, there are so many other errors, each different every time. Is this library no longer given any attention by the developers?
Module not found: Can't resolve ('@keyv/redis' | '@keyv/mongo' | '@keyv/sqlite' | '@keyv/postgres' | '@keyv/mysql' | '@keyv/etcd' | '@keyv/offline' | '@keyv/tiered' | <dynamic>)
@Helper @Apify Developer Community ManagerPlease share your package.json, and the docker file you're using