openGraphScraper icon indicating copy to clipboard operation
openGraphScraper copied to clipboard

Typescript Export Assignment

Open Sydney-o9 opened this issue 1 year ago • 0 comments

Describe the bug There is a regression in ^6.6 for Tyepscript users.

image

We had to downgrade to ^6.5 to transpile properly image

To Reproduce

Use ^6.6 and build $ tsc

Expected behavior It should compile

Actual behavior It doesn't compile with error:

image

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.6 and ^6.7

Sydney-o9 avatar Jul 23 '24 04:07 Sydney-o9