intercom-node icon indicating copy to clipboard operation
intercom-node copied to clipboard

Unable to build 5.0.0 with TypeScript

Open DemonICOLI opened this issue 1 year ago • 1 comments

  • intercom-node version: 5.0.0
  • Node version: 20 (LTS) and TypeScript 5.4.5

Expected behavior

Code Compiles

Actual behavior

Trying to compile breaks with the following error message:

node_modules/intercom-client/dist/client.d.ts(44,20): error TS2749: 'Axios' refers to a value, but is being used as a type here. Did you mean 'typeof Axios'?`
/node_modules/intercom-client/dist/client.d.ts(66,30): error TS2749: 'Axios' refers to a value, but is being used as a type here. Did you mean 'typeof Axios'?

tsconfig.json

{
  "compilerOptions": {
    "outDir": "./build",
    "allowJs": true,
    "target": "ES2022",
    "module": "Node16",
    "lib": ["ES2023"],
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "moduleResolution": "Node16",
    "sourceMap": true
  }
}

DemonICOLI avatar May 22 '24 16:05 DemonICOLI

Hey @DemonICOLI - Sorry to hear you ran into this issue. We're running a pilot with a new TypeScript SDK — hopefully has no compile issues!

We'd love for you to try it out and let us know what you think. Here are the details:

Please feel free to share any feedback that you have with us here or send me a message at [email protected]

Eclairemoy avatar Jul 19 '24 11:07 Eclairemoy