Axios with promise.prototype.finally doesn't work
Try one of these see if it works:
See if you have a global Promise available to shim it? Enter
Promise
in chrome console while the browserify is running the bundle. If you don't have it, use Babel or a lib that makes es6 or just Promise available.If it didn't work for some reason... well axios cookbook.md didn't get it right, since you have to call shim() to apply it on promise proto. why don't you use a shorthand
require('promise.prototype.finally').shim();
if you don't like it that way, otherwise you have torequire('es6-shim');
FYI https://github.com/axios/axios/issues/34#issuecomment-558869934
Axios supports .finally()
.