Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsc error 'AxiosHeaders' refers to a value, but is being used as a type here #543

Open
mattiaferrari02 opened this issue Jul 23, 2024 · 1 comment

Comments

@mattiaferrari02
Copy link

I'm using tronweb version 6.0.0-beta.4. When i try to use tsc command i get this error

node_modules/tronweb/lib/commonjs/types/Providers.d.ts:2:52 - error TS2749: 'AxiosHeaders' refers to a value, but is being used as a type here. Did you mean 'typeof AxiosHeaders'

here's my tsconfig

{
    "compilerOptions": {
      "rootDir": "src",
      "outDir": "dist",
      "strict": true,
      "target": "es6",
      "module": "Node16",
      "sourceMap": true,
      "esModuleInterop": true,
      "moduleResolution": "node16",
      "typeRoots": [
        "node_modules/@types",
        "src/types"
      ]
    },
    "include": [
      "src/**/*.ts",
      "src/**/*.d.ts"
    ]
  }
  
@start940315
Copy link
Contributor

start940315 commented Jul 25, 2024

Change the moduleResolution to node and it will fix the problem. Later we'll fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants