The issue might be that the Vue app is not properly initialized. Try adding the following code to the app.js file before mounting the app:
import { createApp } from 'vue';
import Time from './components/Time.vue';
const app = createApp({});
app.component('Time', Time);
document.addEventListener('DOMContentLoaded', () => {
app.mount('#app');
});
This ensures that the Vue app is only mounted after the DOM has been fully loaded. Also, make sure that the app.js file is properly included in the app.blade.php file.