node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

ERROR TypeError: req.prependListener is not a function

Open arcovoltaico opened this issue 1 year ago • 2 comments

I have the 4.11.4 version patched as https://github.com/fent/node-ytdl-core/issues/1216

When executing ytdl.downloadFromInfo(info, downloadOptions).pipe(file);

Sometimes I am getting ERROR TypeError: req.prependListener is not a function

It only happens Why running my Angular Electron app by npm start, not on the built app.

arcovoltaico avatar Apr 30 '23 12:04 arcovoltaico

I cant reproduce but i ran into a slightly similar issue with something else.

Try enabling the nodeintegration arg

i.e.

const win = new BrowserWindow({
      webPreferences: {
         nodeIntegration: true,
      },
      width: 1920,
      height: 1080
   });

richardabear avatar May 01 '23 10:05 richardabear

Thanks, but I already got that flag up.

arcovoltaico avatar May 01 '23 12:05 arcovoltaico