typeError: Cannot read properties of undefined (reading 'cancelToken')
bootstrap.js
// intercept application requests
axios.interceptors.request.use(
config => {
console.log('Intercetando o request antes do envio :' , config)
return config
},
error => {
console.log('Erro na Requisição: ', error)
return Promise.reject(error)
}
)
// intercept application response
axios.interceptors.response.use(
response => {
console.log('Intercetando a resposta antes do envio :' , response)
return response
},
error => {
console.log('Erro na Resposta: ', error)
return Promise.reject(error)
}
)