I am currently utilizing Vue 3 in conjunction with the vue-auth
package.
To make use of vue-auth
, my project necessitates the creation of a http/index.ts file, which should include:
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;
}
However, I encountered a type error related to app
:
https://i.sstatic.net/xfWuz.png
How can I go about resolving this issue?