Я пытаюсь напечатать шаблон моего компонента Vue в Интернете, но я получаю вышеуказанную ошибку. Я не знаю, что такое загрузчик. Может кто-нибудь помочь мне?
index.blade.php:
<html>
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
</head>
<body>
<div id="app">
<testing></testing>
</div>
<script src="{{asset('js/app.js')}}"></script>
</body>
</html>
app.js:
require('./bootstrap');
window.Vue = require('vue');
Vue.component('testing', require('./components/testing.vue'));
const app = new Vue({
el: '#app'
});
testing.vue:
<template>
<h2>
testing
</h2>
</template>
<script>
export default {
name: "testing"
}
</script>
Я ожидаю, что в результате будет получена строка "testing" из моего шаблона в Интернете