I know this is a dumb question. But I have followed the tutorial in Laravel on how to include node_modules into my project. I already configured inside my
resources/assets/js/app.js
require('./bootstrap');
window.Vue = require('vue');
Vue.component('example-component', require('./components/ExampleComponent.vue'));
and configured in my webpack.mix.js
mix.scripts([
'resources/assets/js/app.js',
'resources/assets/js/testvue.js'
], 'public/js/app.js');
However, when I try to run my code I always get a Uncaught ReferenceError: require is not defined
Is there something that I need to configure with Webpack?
Thanks