You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have http.js configuring axios however when importing it it fails with
src/main.ts(16,19): error TS2769: No overload matches this call.
-- | --
Overload 1 of 2, '(plugin: Plugin<[axios: AxiosStatic]>, axios: AxiosStatic): App<Element>', gave the following error.
Argument of type 'AxiosInstance' is not assignable to parameter of type 'AxiosStatic'.
Type 'AxiosInstance' is missing the following properties from type 'AxiosStatic': create, Cancel, CancelToken, Axios, and 12 more.
Overload 2 of 2, '(plugin: Plugin<[axios: AxiosStatic]>, options: [axios: AxiosStatic]): App<Element>', gave the following error.
Argument of type 'AxiosInstance' is not assignable to parameter of type '[axios: AxiosStatic]'.
src/main.ts(16,19): error TS2769: No overload matches this call.
Overload 1 of 2, '(plugin: Plugin<[axios: AxiosStatic]>, axios: AxiosStatic): App<Element>', gave the following error.
Argument of type 'AxiosInstance' is not assignable to parameter of type 'AxiosStatic'.
Type 'AxiosInstance' is missing the following properties from type 'AxiosStatic': create, Cancel, CancelToken, Axios, and 12 more.
Overload 2 of 2, '(plugin: Plugin<[axios: AxiosStatic]>, options: [axios: AxiosStatic]): App<Element>', gave the following error.
Argument of type 'AxiosInstance' is not assignable to parameter of type '[axios: AxiosStatic]'.
ERROR: "type-check" exited with 2.
This works fine with javascript and only fails with TypeScript. I'm sure it's something simple to fix. I checked the tickets and saw there may be issues with types and such as there doesn't seem to be full TS support.
Does anyone have a solution for this?
The text was updated successfully, but these errors were encountered:
I have
http.js
configuring axios however when importing it it fails withhttp.js
main.js
This works fine with javascript and only fails with TypeScript. I'm sure it's something simple to fix. I checked the tickets and saw there may be issues with types and such as there doesn't seem to be full TS support.
Does anyone have a solution for this?
The text was updated successfully, but these errors were encountered: