berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.41k stars 739 forks source link

[Bug] Failed to compile; Cannot statically analyse 'require(…, …)' in line 7 #863

Closed yo1nick closed 9 months ago

yo1nick commented 9 months ago

I have the following problem:

` Next.js is up to date (13.4.4)

Failed to compile

./node_modules/clone-deep/utils.js Cannot statically analyse 'require(…, …)' in line 7

Import trace for requested module: ./node_modules/clone-deep/utils.js ./node_modules/clone-deep/index.js ./node_modules/merge-deep/index.js ./node_modules/puppeteer-extra-plugin/dist/index.cjs.js ./node_modules/puppeteer-extra-plugin-recaptcha/dist/index.cjs.js ./src/app/(server)/api/parser/route.js `

as far as I can tell the problem is with the merge-deep module which uses a very old version of clone-deep, if anyone has a solution to this problem it would be appreciated

yo1nick commented 9 months ago

Fixed with: https://github.com/berstend/puppeteer-extra/issues/829#issuecomment-1691086606