Answers for "typeError: Cannot read properties of undefined (reading 'cancelToken')"

0

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)
    }
)
Posted by: Guest on September-28-2021

Code answers related to "typeError: Cannot read properties of undefined (reading 'cancelToken')"

Code answers related to "Javascript"

Browse Popular Code Answers by Language