While following a YouTube tutorial on utilizing puppeteer in JavaScript, I encountered an issue where the page would not render even if I required the library.
The problem seemed to be located right below where I imported my Vue components:
<script>
import Header from './components/Header.vue'
import Item from './components/Item';
const puppeteer = require('puppeteer')
Upon checking the console, I found this error message:
util.js?3022:602 Uncaught TypeError: The "original" argument must be of type Function
at promisify (util.js?3022:602)
at eval (index.js?6b55:11)
at Object../node_modules/extract-zip/index.js (chunk-vendors.js:1642)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (BrowserFetcher.js?aafb:48)
at Object../node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js (chunk-vendors.js:2780)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at eval (Puppeteer.js?a657:23
If anyone has any insights or solutions to this issue, your help would be greatly appreciated. Thank you!