Closed bkamapantula closed 1 year ago
Hi!
It was due to the default export and a normal one when using cjs. I updated the package, it should work with the following example:
import { YoutubeTranscript } from 'youtube-transcript';
YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log);
Thanks for the update!
Thanks for the library!
I think transcription no longer works as it throws an error. I tried it with the complete URL and with the video string alone.
TypeError: YoutubeTranscript.fetchTranscript is not a function