0👍
After
require('./bootstrap');
window.Vue = require('vue');
const app = new Vue({
el: '#app',
methods: {
refreshToken: function() {
console.log('refreshing the token');
}
}
});
Add what the error says it’s missing:
“export ‘default’ (imported as ‘app’) was not found in ‘./app.js’
Just add this:
export default app;
That might solve the compilation problem, as for the call to the function, i have not tested it yet… came with a very similar problem 15 minutes ago..
Source:stackexchange.com