distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
268 stars 48 forks source link

Module not found: Can't resolve 'fs' #20

Closed 1982FenceHopper closed 5 months ago

1982FenceHopper commented 5 months ago

Describe the bug

Attempting to use ytdl.getInfo results in module not found error in Next.js 14.2.3

Debug File

image

Environment

skick1234 commented 5 months ago

Because this fork is dedicated to use with skick1234/DisTube, I added some update only for node.js server, not web client. I will check and remove them in the next update.

1982FenceHopper commented 5 months ago

CLOSING: Fixed by running in server side API call. However, another issue has occured which is also prevalent in the core library, recommend you check this out @skick1234

https://github.com/fent/node-ytdl-core/issues/1290