node-ytsr
node-ytsr copied to clipboard
Not working in browser
Trying to use the package in the browser seems to result in an error from miniget:
https://codesandbox.io/s/modest-cray-on365?file=/src/index.ts

Is this expected to work?
you should also get that error when your polyfills for http and https fail
so pls validate that that properly worked
Okay, so tried a different polyfilling approach using http-browserify aliased to http.
Now I get this error:
https://codesandbox.io/s/modest-cray-on365?file=/src/index.ts
Is there a different polyfilling approach I should be using perhaps?
😅 unfortunately never webpacked sth myself so no idea the libs (ytsr, ytpl, ytdl-core, miniget) should only use the default node.js http / https libraries though