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

Bug: error during build phase #759

Closed
ilteoood opened this issue Jan 2, 2024 · 0 comments · Fixed by #764
Closed

Bug: error during build phase #759

ilteoood opened this issue Jan 2, 2024 · 0 comments · Fixed by #764
Assignees
Labels
bug Something isn't working triage Needs triage

Comments

@ilteoood
Copy link

ilteoood commented Jan 2, 2024

What happened?

Upgrading from v1.3.2 to v1.4.1, the following error is thrown during the build phase:

node_modules/axios-cache-interceptor/dist/cache/create.d.ts:22:43 - error TS2749: 'Axios' refers to a value, but is being used as a type here. Did you mean 'typeof Axios'?

22 export declare function setupCache(axios: Axios, options?: CacheOptions): AxiosCacheInstance;

This is my tsconfig:

{
  "compilerOptions": {
    "module": "Node16",
    "esModuleInterop": true,
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "target": "es2017",
    "noImplicitAny": true,
    "moduleResolution": "node16",
    "resolveJsonModule": true,
    "sourceMap": true,
    "outDir": "dist"
  },
  "include": [
    "src/**/*"
  ]
}

axios-cache-interceptor version

1.4.1

Node / Browser Version

20.10.0

Axios Version

1.6.3

What storage is being used

Memory Storage

Relevant debugging log output

Is type related, not needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants