I\'m trying to create a simple webpage that uses Puppeteer (a NodeJS library for web scraping). I can\'t run my page because my main.js file that I link to from my index.html us
Browserify solves the problem of require
not being supported by browsers.
It also allows you to use tools like npm and yarn to manage JS packages since it can resolve them using require
like Node.js can.
It doesn’t solve the problem of modules, like puppeteer
, depending on APIs that are provided by Node.js and not by browsers. You can’t run Puppeteer client-side.