Closed qhkm closed 1 year ago
Hello,
Unfortunately, it looks like there is no way to solve this problem without a significant rewrite or a second library. Originally I was under the impression that you could still use this library in the browser as long as you didn’t make any requests, but it looks like that is not possible because when you build your project, it will still try and pull in the request library(got), which is causing your issue.
I've updated my readme to state we do not support bowser usage at this time.
I would recommend trying to use https://github.com/sindresorhus/ky for requests and use https://github.com/microlinkhq/metascraper to get the meta data.
Environment
Node ver: 16.8.0 Next ver: 12 Npm ver: 8.19.2 open-graph-scraper: ^5.0.3
I just finished installing the lib and when I tried to use it, this error was thrown.
Then I tried installing the missing http2 module and then another error was thrown
And installed
net
lib yet another error thrownAny idea what's wrong?