openGraphScraper
openGraphScraper copied to clipboard
Typescript Export Assignment
Describe the bug
There is a regression in ^6.6 for Tyepscript users.
We had to downgrade to ^6.5 to transpile properly
To Reproduce
Use ^6.6 and build $ tsc
Expected behavior It should compile
Actual behavior It doesn't compile with error:
The issue arises because the code is trying to mix export default with export =, which is not allowed in TypeScript. In a module, you cannot use both export default and export = together.
- OS:
MacOS - Node Version:
v18.20.1 - openGraphScraper Version:
^6.6and^6.7