Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR TypeError: req.prependListener is not a function #1219

Open
arcovoltaico opened this issue Apr 30, 2023 · 2 comments
Open

ERROR TypeError: req.prependListener is not a function #1219

arcovoltaico opened this issue Apr 30, 2023 · 2 comments

Comments

@arcovoltaico
Copy link

arcovoltaico commented Apr 30, 2023

I have the 4.11.4 version patched as #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.

@richardabear
Copy link

richardabear commented May 1, 2023

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
   });

@arcovoltaico
Copy link
Author

Thanks, but I already got that flag up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants