It is hard to use this package when producing ESM native modules for nodejs 18+.
When you configure a project to use moduleResolution: 'NodeNext' and module: 'NodeNext', you will get TS2349 error saying that the open-graph-scraper has no call signatures. That is the result of improper typings produced that are pretending to be ESM compatible but in reality they aren't and they would break the runtime.
It is hard to use this package when producing ESM native modules for nodejs 18+.
When you configure a project to use
moduleResolution: 'NodeNext'
andmodule: 'NodeNext'
, you will getTS2349
error saying that theopen-graph-scraper
has no call signatures. That is the result of improper typings produced that are pretending to be ESM compatible but in reality they aren't and they would break the runtime.