Good afternoon, I can not use the "axios" require in the vue component file. How to solve this? the file in question is home.js:
const axios = require('axios');
Vue.component('home-page', {
template: '
<div>
<input type='text' v-model='nome' >{{nome}}
</div>
',
data: function () {
return {
nome: "teste",
}
},
mounted: function () {
}
})
The error that appears is:
"Uncaught ReferenceError: require is not defined at home-page-component.js:1"
No more, thanks for the attention !!