We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.default
1 parent b37d3aa commit 679f1b4Copy full SHA for 679f1b4
resources/js/frontend/app.js
@@ -20,9 +20,9 @@ window.Vue = Vue;
20
*/
21
22
// const files = require.context('./', true, /\.vue$/i)
23
-// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key)))
+// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
24
25
-Vue.component('example-component', require('./components/ExampleComponent.vue'));
+Vue.component('example-component', require('./components/ExampleComponent.vue').default);
26
27
/**
28
* Next, we will create a fresh Vue application instance and attach it to
0 commit comments