I am using Vue 3 and vue-auth together.
For vue-auth, my project needs to create http/index.ts, containing:
import axios from 'axios';
axios.defaults.baseURL = process.env.VUE_APP_API_URL;
export default (app) => {
app.axios = axios;
app.$http = axios;
app.config.globalProperties.axios = axios;
app.config.globalProperties.$http = axios;
}
but here I have a type error for app:
How can I fix this?

This is not exactly an error, but rather a warning that if you don't define a type, the parameter will have the type:
any. In that case, the IDE just advises you to useany, or whatever type you wantIs possible to disable this warning adding
"noImplicitAny": falseat yourtsconfig.jsonif you want (: