rikmms / progress-bar-4-axios

Slim progress bar (NProgress) for Web applications that use Axios library for HTTP requests
MIT License
246 stars 32 forks source link

Uncaught TypeError: Cannot read property 'interceptors' of undefined at setupStartProgres #19

Open ulises58 opened 4 years ago

ulises58 commented 4 years ago

$(document).ready(function() { loadProgressBar() $("#test").click(function(){ console.log("mandado peticion") axios.get('http://127.0.0.1:53330') .then(function (response) { renderTable(response.data)
}) .catch(function (error) { // handle error console.log(error); }) .then(function () { // always executed }); }); })

danielbozsoki commented 3 years ago

@ulises58 just put scripts in your html like this:

<script src="https://unpkg.com/axios/dist/axios.min.js"></script> <script src="https://cdn.rawgit.com/rikmms/progress-bar-4-axios/0a3acf92/dist/index.js"></script>