Kakulukian / youtube-transcript

Fetch transcript from a youtube video
240 stars 51 forks source link

Hello i have a problem Error: [YoutubeTranscript] #2

Closed champseo2017 closed 5 months ago

champseo2017 commented 2 years ago

Error: [YoutubeTranscript] 🚨 TypeError: URL is not a constructor I am using Next js and Express.

image

dominiczy commented 2 years ago

Getting the same error, any updates?

danielgoodwin97 commented 1 year ago

I only get this issue when using the URL. If I just use the ID then it's fine.

naladda commented 1 year ago

Getting this error even with video id Using like this const resp = await YoutubeTranscript.fetchTranscript('Gv22NkA8viE').catch(console.log)

chase-clingman commented 1 year ago

Solution?

9und30 commented 1 year ago

anyone found a fix yet?

champseo2017 commented 1 year ago

Thank you very much, I will try this method. @naladda

Kakulukian commented 1 year ago

Related to https://github.com/ethanent/phin/issues/50, you need to polyfill URL primitive to use in a frontend app. I'll think about removing this dependency to use fetch

pedrorocha-net commented 1 year ago

Is anyone able to use this package? Not working for me at all, because of this error.

satpalsr commented 1 year ago

Hey @Kakulukian, Any update on this?

bvschwartz commented 10 months ago

This module only works on backend server running nodejs.