Closed dlipinski closed 1 year ago
If you're getting YoutubeTranscript.fetchTranscript is not a function error, instead of this: const YoutubeTranscript = require('youtube-transcript'); try this: const YoutubeTranscript = require('youtube-transcript').default;
YoutubeTranscript.fetchTranscript is not a function
const YoutubeTranscript = require('youtube-transcript');
const YoutubeTranscript = require('youtube-transcript').default;
:)
If you're getting
YoutubeTranscript.fetchTranscript is not a function
error, instead of this:const YoutubeTranscript = require('youtube-transcript');
try this:const YoutubeTranscript = require('youtube-transcript').default;