Closed CameronCT closed 2 years ago
As a small update adjusting the code to do await youtube.default.search
seems to allow this to work.
Possibly an issue with me using ESM over CJS?
Probably. I don't remember why I used default export for this package. If you update to 2.1.10 you can use
import { youtube } from 'scrape-youtube';
Describe the bug When trying to use
search
it returns withyoutube.search
is not a function.Here is the code below
Returns with error: