Next.js Discord

Discord Forum

Error in Vercel while using Puppeteer to scrape yt search results

Unanswered
Tramp ant posted this in #help-forum
Open in Discord
Tramp antOP
I'm using puppeteer to scrape yt search results it works fine on localhost but doesn't work on prod.

It keeps giving me this erro with different dependencies after I install the one in the error.

info Loaded env from /var/task/.env

          A plugin listed 'puppeteer-extra-plugin-user-data-dir' as dependency,
          which is currently missing. Please install it:

          yarn add puppeteer-extra-plugin-user-data-dir

          Note: You don't need to require the plugin yourself,
          unless you want to modify it's default settings.
          
- error Error: Cannot find module 'puppeteer-extra-plugin-user-data-dir'


I've implemented all the solutions from GitHub issue 910 (https://github.com/vercel/pkg/issues/910) it's still not working

0 Replies