Laravel 5.4 Uncaught TypeError: Cannot read property 'common' of undefined -


i'm stuck kind of error related axios. issue occurs when use npm run watch , edit scss or vue files. after editing scss or vue files, browser reloads , produce error.

enter image description here

found link no luck. tried removing node_modules , npm install.

tried dig browser's console , got

axios.defaults.headers undefined 

and when axios.defaults.headers.common display main error.

for mean time, cured lowering laravel-mix version 0.* in package.json , run npm install. source link here


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -